Splunk Search

Timechart but based on 2+ more user selections

redrabbit
Observer

Hi everyone,

I have a line chart which works perfectly but only for one single value:

index=events ComputerName=* Account_Name=*** EventCode=$event_code_input$ |
| timechart count by EventCode

As you can see it reads EventCode as a user input. This is a multi-selection box. 

So if the user selects: 

4624 it plots the line - no issue

But if they select 4624 AND 4625, it produces an error. 

 

I've tried many different variations and chart types but no success. 

Thanks

 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The timechart command accepts only one field name in the by clause.  Anything else will result in an error.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...