1002 Flashcards
Case sensitive
Field values from lookups Field values from eval, where Tags Dataset name Reg ex Boolean
Can choose values to be case insensitive when creating lookup tables
Admin role
Buckets
Raw data
Index data to find qualifying events
Time range to choose which buckets to search
Hot- writable - rolls when max time is reached , indexer restarted
Warm-read only , named by time stamps
Of first and last events in the bucket
Cold - diff location - slower , cost effective
Configurable by admin- max size , max time span
Execution costs
Any job that has not expired can be inspected 10,000-20,000 events per second
Chart command
By - y axis
Over - x axis
Any stats function can be applied to chart command
If 2 clauses are used - first field will be used as over clause : over , by
Usenull=f
Useother=f
Usefield=f
NOT usefill
Timechart
_time Statistical aggregations over time Single or multi series Time range can be adjusted using span= Line ,area ,chart Limit=0 useother=f usenull=f
Can add a sparkline and trend
Sparkline - in-line char display time based trends
Trend - directions in which values are moving (right side of value )
7 chart types
Line Area Column Bar Scatter - 2 data values
Chart overlay- one series of data over another visualisation
Trellis - multiple charts based on one result set , only run once
Stats command
See the result of calculation or group of events on a field value
2 or more fields
Doesn’t need to be time based
OR
To view events from multiple indexes not AND
Trendline command
Moving average on a chart
Defines period to compute the trend- integer between 2 & 10,000
3 arguments - trend type , time period , field
Sma- simple |trendline sma2(sales) as trend
Ema- exponential
Wma- weighted moving average
2 types of maps
Cluster= Geostats =latitude, longitude , by argument- same functions as stats
Choropleth= geom command =pologons, shading , relative metrics ,predefined regions ,need .KMZ & KML keyhole markup language
Splunk ships 2 kmz files:
Geo_us_states.kmz
Geo_countries.kmz
-iplocation= Info to event includes external IP addresses
Define latfield and longfield only if they differ from the default lat/lon fields.
Gauge command -Single value
Set colours , number format
Add totals command
Default - sum numerical fields for each event
Eval
Calculates , convert, round , format =field values
Multiple eval commands can be used in search
Expressions separated by commas
If no numeric values - “double quotes”
Results of eval are written to new or existing field (if field exists eval overwrites values ).
Doesn’t over write indexed data
Field values case sensitive
Can use search or where commands to filter
Characters - concerts field values to strings - sort used after returns alphanumerically
Sort used before - numerically
Operators -arithmetic, concatenation, Boolean, comparison
If function = 3 arguments “x,y,z”
Case function = Boolean return what is true , can be wrapped in transforming commands
Round function = 2 decimal places , if no decimal given splunk rounds to closest whole number.
Tostring function= numeric field into string , commas , duration ops out of _time .
Commas , duration, hex
Field format = format values but not change characteristics of underlying values
Search command =filter , anytime , insensitive,*
Where command = Sytax as eval , compare values from different fields . Like% wildcard operator * can’t be used
%multiple characters
_one character
Add totals - numeric fields for each event , totals
Transactions
Group of events that span time
One or more field names
Multiple fields specified if transaction exists between those fields events with related field values are grouped into a single transaction
Only use when you need to see events correlated together or when needs to be grouped with start or end values -1000 per transaction
2 fields :
Duration - 1st event to last
Event count- number of events contained by transaction
Constraints :
Max span - total time between earliest and latest
Max pause - total between events doesn’t exceed value
Max count - not automatically created with transaction command
Only use transaction when you need to find correlated events
Can use stats and reporting commands with transactions
Useful when event doesn’t provide info
Mid -message id
Dcid- delivery connection id
Icid- incoming connection id