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!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

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

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...