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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...