searchsearch index=main error
Keywords: search, find, events, basic
index=index=web_logs status=404
Keywords: index, source, data
| stats| stats count by host
Keywords: stats, count, aggregate, statistics
| eval| eval new_field=field1+field2
Keywords: eval, calculate, field, expression
| where| where status_code>=400
Keywords: where, filter, condition, boolean
| table| table _time, host, status
Keywords: table, display, fields, columns
| sort| sort -_time
Keywords: sort, order, ascending, descending
| head| head 10
Keywords: head, limit, first, top
| tail| tail 5
Keywords: tail, limit, last, bottom
| dedup| dedup host
Keywords: dedup, unique, duplicate, distinct
| timechart| timechart span=1h count by status
Keywords: timechart, time, chart, visualization
| rex| rex field=_raw "(?<ip>\d+\.\d+\.\d+\.\d+)"
Keywords: rex, regex, extract, parse
| join| join host [search index=users]
Keywords: join, merge, combine, lookup
| lookup| lookup user_info.csv user_id
Keywords: lookup, enrich, table, reference
earliest= latest=earliest=-24h latest=now
Keywords: time, range, earliest, latest
| fields| fields + _time, host, status | fields - _raw
Keywords: fields, include, exclude, select
| rename| rename src_ip as "Source IP", dest_port as "Destination Port"
Keywords: rename, alias, readability, standardize
| fillnull| fillnull value="Unknown" user_agent
Keywords: fillnull, null, replace, default
| transaction| transaction sessionid maxspan=30m
Keywords: transaction, group, session, correlation
| bucket| bucket _time span=1h | stats count by _time
Keywords: bucket, group, discrete, histogram
| eventstats| eventstats avg(response_time) as avg_response by host
Keywords: eventstats, statistics, augment, enrich
| streamstats| streamstats count as event_number, avg(cpu_usage) as running_avg
Keywords: streamstats, running, cumulative, time
| multisearch| multisearch [search index=web] [search index=app]
Keywords: multisearch, multiple, parallel, combine
| append| append [search index=backup earliest=-1d@d latest=@d]
Keywords: append, add, combine, union
| map| map search="search index=logs host=$host$ error"
Keywords: map, iterate, apply, dynamic
| convert| convert ctime(_time) as readable_time, dur2sec(duration) as seconds
Keywords: convert, format, datatype, transform