Reporting

report on syslog activity

tuxford
Path Finder

Hello

I need a simple way to create some sort of report on what hosts log syslog data to splunk for syslog compliance to external party and if that could be a job that emailed it every month that would be great, if someone has a solution or tip that would be appreciated.

Tags (1)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

This search may take a long time to finish, since it will actually go through each event for the sourcetype last month, BUT it will give you what you want.

sourcetype=syslog earliest=-1mon@mon latest=@mon | chart c by host date_month 

Hope this helps,

Kristian

View solution in original post

kristian_kolb
Ultra Champion

This search may take a long time to finish, since it will actually go through each event for the sourcetype last month, BUT it will give you what you want.

sourcetype=syslog earliest=-1mon@mon latest=@mon | chart c by host date_month 

Hope this helps,

Kristian

kristian_kolb
Ultra Champion

Just be aware that this is not very efficient. /k

0 Karma

tuxford
Path Finder

Yes, this did the trick, thank you.

0 Karma

MHibbin
Influencer

tuxford,

I think the quickest way would be to use the "metadata" command (docs here). As this provides results very (VERY) quickly. You could do something like (include the first pipe at the very beginning):

|metadata type=hosts index=_internal

And then once you have verified the results, simply create an alert (docs here) from the search view (flashtimeline). And have it email a report once a month (providing you have setup SMTP, docs here ).

Regards,

MHibbin

tuxford
Path Finder

What I need is month, host and count of events by host for the last month. So the job runs on the first every month and reports that for the month before. If someone has a quick fix that would be great 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...

Index This | How many sevens are there between 1 and 100?

August 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...