Module 5 Flashcards

(17 cards)

1
Q

Search Terms

A

Keywords, phrases, wildcards, booleans

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

Commands

A

Specifies what to do with results after search
Calculate statistics, generate charts, eval new fields

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

Functions

A

Defines how to perform a task required by the command
Function arguments provide the variables needed for the function to work

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

Arguments

A

Variables needed for the command to work
Ex: Command argument can limit the number of results

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

Clauses

A

Group or rename fields

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

How to separate commands (Search pipeline)

A

| a pipe

a pipe

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

Componentes broken down of search

A

index=main sourcetype=eventgen |
Applying search terms to events on disk
| eval callResult=if(responseCode==200, “Success”, “Failure”) |
Eval command with if function
| stats count BY callresult |
Stats command with count function and BY boolean
| rename callResult AS finalResult
rename command

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

Syntax color

A

Commands - Blue
Functions - purple
Boolean & command modifiers - Orange
Command arguments - green

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

Fields Command

A

Only the specified fields are extracted
| fields + (default)
| field - (removes the fields from search)

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

| table

table

A

Creates a statistical table for fields
Each row will be an event and each column a field name

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

| rename

rename

A

Renames field name
Ex: | rename JESSSIONID as sessionID

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

| sort

sort

A

Sorts results in ascending order
Ex: | sort limit=10 “User IP Address”
If you want deseding order use | sort -

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

| dedup

dedup

A

Removes duplicate fields of choice
Ex: | dedup “User IP Address”

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

| stats

stats

A

Count number of events
Ex: | stats count by clientip
Functions:
count - counts the number of events
distinct_count (dc) - counts the amaount of unique values
sum- calculates sum of values in a feild
avg - calculates avg of values in a feild
list - list all values
values - list all unique values of field
max - max value of field
min - min value of field

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

Transforrming commands

A

table, stats, top, rare, chart, timechart

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

| top

top

A

returns a stats table for most common values
Arguments:
limit - 0 is no limit
showperc=f (wont show %)
countfield - renames the count field