Getting Data In

SNMP Log file (Logrotate)

asand100
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

asand100
New Member

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

0 Karma

Ayn
Legend

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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...