LogPoint - Cheat Sheet - v6
LogPoint - Cheat Sheet - v6
LogPoint v6
NAME S Y N TA X DESCRIPTION
SIMPLE SEARCH
login successful Looks for log messages containing both login and successful.
Phrase search “login successful” Looks for the exact phrase login successful.
OR login OR logout Looks for the logs with either login or logout.
NOT -device_ip=127.0.0.1 Looks for the logs with device_ip not equal to 127.0.0.1
(exclusion)
! device_ip!=127.0.0.1 Looks for the logs with device_ip not equal to 127.0.0.1
chart | chart count() by device_ip Displays chart and log count of different device_ip.
| chart count() by destination_address, Displays the chart and count of logs from different
destination_ port destination_address to different destination_port.
| norm source port: Assign the immediate number following source port: to
norm
<source_port:int> dynamic field source_port and displays the log messages.
min | chart min(severity, severity > 3) Displays the log message with minimum severity greater than 3.
var | chart var(severity) by source_address Returns the variance of severity values of source_address
latest device_name=* | latest by log_ts,devicename Only display the last log received by device_name
A R I T H M E T I C O P E R AT I O N O N A G G R E G AT O R S
| chart count() by device_ip order by count() Display the count of log messages for each of the device_ips in
order by
DESC the descending order of count. Use ASC for ascending order.
step | chart count() by step(destination_port,100) Displays the count of destination_port in the step of 100.
| chart count(object=”process”) as
“PROCESS”, Names the result charts as PROCESS and
alias
count(action= created OR exited) as EXECUTION and gives their total count.
EXECUTION
user IN ILLEGAL_USER Displays the activities of all users listed in the list ILLEGAL_USER.
fieldname IN
[value1,value2,value3, ]
| chart count() by
Inline mapping, displays the dynamically mapped severity values.
map(severity,{1:’emergency’,2:’critic al’})
Use search command when you have to filter the content of logs
login username=* | chart count() as count_ in addition to the default search query. Use this syntax to sort
username fields obtained from rex, norm, alias or rename. Additionally,
by username | search count_username > 5 you can include search in any part of the query using “search”
command. Remember it is preceded by a pipe as | search.
status=down port=80 | latest on log_ts by This command sorts the latest device_
device_ip ip based on the field log_ts