We are trying to watch the NIC statistics for our OS interfaces. We are gathering data from a simple ifconfig eth0 | grep -E 'dropped|packets' > /var/log/nic-errors.log For my search, I have: index="myindex" host="our-hosts*" source="/var/log/nic-errors.log"
| rex "RX\serrors\s(?<rxError>\d+)\s"
| rex "RX\spackets\s(?<rxPackets>\d+)\s"
| rex "RX\serrors\s+\d+\s+dropped\s(?<rxDrop>\d+)\s"
| chart last(rxError), last(rxPackets), last(rxDrop) by host which displays the base data. Now I want to watch if rxError increases and flag that. Any ideas? The input data will look something like: RX packets 2165342 bytes 33209324712 (3.0 GiB)
RX errors 0 dropped 123 overruns 0 frame 0
TX packets 1988336 bytes 2848819271 (2.6 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
... View more