Commands Flashcards

1
Q

| fields

fields

A

Include or exclude fields in search

Ex: | fields [field]

You can add + or - to include or exclude

Ex: | fields -status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

| rename

rename

A

Rename names in search

Ex: | rename [field] as “[New name]”

You can do multiple

Ex: | rename status as “New Status”, count as “New Count”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

| eval

eval

A

Calculate field values

Ex: | eval [new name] = [the field]/[number]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

| stats

stats

A

Ex: | stats sum(data)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

erex | rex

A

field extraction from data

rex Ex: [a-zA-Z:]+’(?PCharacter>[a-zA-Z0-9.-]+)”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

table

A

Displays a table of selected data
Ex: | table JSESSIONID price product_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

|dedup

A

Removes duplicates
EX: | dedup JSESSIONID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

addtotals

A

Compute the sum of the rows or coloumns
Rows EX: | addtotals
Col EX: | addtotals col=true label=”Total Sales” labelfield=”product_name” fieldname=”Total By Product”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

fieldformat

A

Changes the look but not the underlying data

Ex: |fieldformat Total = “$” + tostring(Total, “commas”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Transforming Commands

A

top, rare, stats, chart, timechart, trendline

top - returns top 10
| rare - shows the least common

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

timechart

A

Line graph output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

trendline

trendline

A

Computes moving averages of field values, needs a trend type

|trendline wma2(sales) as trend

wma - type
2 - time period (2 days)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

trendline types

A

simple, exponential and weighted
sma, ema, wma

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

iplocation

A

add location info from 3rd party

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

geostats

A

Use the data from | iplocation
Ex: | geostats latfield=[] longfield=[] count

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

geom

A

Generated polygonal data for coropleth map
Ex: | geom [] featureidfield=[new name]

17
Q

eval <field1>=<expression1></expression1></field1>

A

Calculates an expression and puts the results into a new or existing field

Functions:
now() - returns time a search started
time()