Splunk Search

How do I parse single-line entries for stacked timechart?

mikeely
Path Finder

I've got a scripted input that dumps a line like the following every minute:

2011-12-22 08:46:56,0,30,6

What I'd like to do is parse it for a stacked timechart as follows:
Datestamp, Critical, Error, Warning

I know the comma is my delimiter, but beyond that I'm kind of at a loss. Any help?

Tags (2)
0 Karma
1 Solution

mikeely
Path Finder

Self-answering:

sourcetype="my_custom_sourcetype" | timechart sum("Critical"),sum("Error"),sum("Warning") by time

View solution in original post

0 Karma

mikeely
Path Finder

Self-answering:

sourcetype="my_custom_sourcetype" | timechart sum("Critical"),sum("Error"),sum("Warning") by time

0 Karma

mikeely
Path Finder

Update: I managed to use the IFX to correctly parse the fields so Critical/Error/Warning are being counted. Now I need to figure out how to do the stacked area chart based on COUNT(Critical),COUNT(Error),COUNT(Warning) for each time the script generates a row.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...