FACT annotate
From DocWiki
To annotate one or more syslog files and print them to the screen with annotations attached, use the annotate command.
- annotate [pass-through | filtered] [follow] [files]
Syntax Description
pass-through (Optional) Indicates that all messages are printed to standard output. filtered (Optional) Indicates that only those messages that are deemed important by FACT are printed. follow (Optional) Specifies that FACT continuously watches for more records to be appended to the files and analyzes those records as they arrive. files (Optional) Specifies the files to annotate (one file or multiple files).
Command Default
- The default is pass-through (filtered for Alpha II release).
Usage Guidelines
- This command uses the current scan to perform annotations. If you specify no files, FACT looks in the FACT main configuration file and annotates only the files that are in the log-file parameters.
Examples
- The following example shows how FACT annotates a short log file:
fact> annotate mylogfile Mar 21 20:14:28 herosm1 ib_sm[30456]: %IB-6-INFO: Generate SM IN_SERVICE trap for GID=fe:80:00:00:00:00:00:00:00:18:8b:90:97:fe:13:3a (hero0404/1/1, hero0404/1:1/1) (hero0404/1/1, hero0404/1:1/1, neighbor = 00:1b:0d:0b:00:00:8e:63 (leaf04b)/1/4)
Related Commands