Getting Data In

SNMP Log file (Logrotate)

New Member

I have a working snmp log file which I can search and email the data "anomosied" successfuly now however it i emailing all the contents of the file that match the search not simple the latest one / two of interest, I could using Redhat to logrotate, however is there anyway within Splunk to get just the top X matches or such? I would like to keep all the data at the moment.

Thank you in advance Anthony

Tags (2)
0 Karma

New Member

Thank you that looks spot on, I will try on monday (thank you.)

0 Karma


I think you need to clarify what you want to do. If you just want the latest X matches, there's the head command that you could use:

... | head X
Get Updates on the Splunk Community!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out >> As our brave ...