Splunk Search

How can I make a timechart from the following data?

zachary_hickman
Explorer

I have data that appears in this format:

2013-05-16 09:40:25,861 "*alphanumeric*"=*number*, "*alphanumeric*"=*number*, ...

Note that there are no duplicate alphanumeric values in each event.

I would like to graph based on the sum of all *number*s for all the *alphanumeric* events for each day. So if in 5 different events on 5/16, "FIELD1" appeared, with the values 1, 2, 3, 4, and 5, the graph would show the value 15 for "FIELD1". I'll also be making this a stacked bar graph, but that shouldn't make a difference.

My biggest issue is separating the data within each event and then summing the data. If someone could point me in the right direction, it would be very appreciated!

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Assuming your alphanumeric field names are auto-extracted due to being key=value pairs, you should be able to do this:

your search | timechart span=1d sum(*)

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Assuming your alphanumeric field names are auto-extracted due to being key=value pairs, you should be able to do this:

your search | timechart span=1d sum(*)

martin_mueller
SplunkTrust
SplunkTrust

Then the next step would be to get those fields extracted, see http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Createandmaintainsearch-timefieldextrac... for reference.

0 Karma

zachary_hickman
Explorer

The alphanumeric isn't a key unfortunately, it's just like two variable pairs.

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!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...