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!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...