Splunk Search

Multivalue Chart

rahulbhatt04
Engager

I have to write a time chart in a day how many different event value happened.

[- logToABTest() response ABTestLog [uniqueId:123, abTestName:null, experience:null, eventName:State:, eventValue:funding_source]

[- logToABTest() response ABTestLog [uniqueId:123, abTestName:null, experience:null, eventName:State:, eventValue:first_page]

Tags (2)
1 Solution

lguinn2
Legend

This doesn't really seem to be a question, but let me try to answer it anyway.

yoursearchhere
| rex "eventValue:(?<eventValue>.*)\]"
| timechart count by eventValue

This assumes that you do not already have a field named eventValue. If you do have the field, you can leave off the second line.

View solution in original post

lguinn2
Legend

This doesn't really seem to be a question, but let me try to answer it anyway.

yoursearchhere
| rex "eventValue:(?<eventValue>.*)\]"
| timechart count by eventValue

This assumes that you do not already have a field named eventValue. If you do have the field, you can leave off the second line.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...