Splunk Search

Splitting multiple unknown fields to timechart by another field

cphair
Builder

Hi,

I've been using * in statistical commands for shorthand in writing out the fields. This has been useful on dynamic dashboards where I don't know what source/sourcetype a user will choose, so I don't have to specify field names ahead of time. A format like the following works:


index=internal | timechart avg(*) as avg*

but this one returns no results:

index=internal | timechart avg(*) as avg* by host

I'm guessing the * is eating the host field before the timechart command tries to split by it. Is there anything I can do about this? I'm running 4.3.4.

0 Karma

rechteklebe
Path Finder

Try this:

index=internal | timechart avg() as "avg" by host

0 Karma

cphair
Builder

Doesn't work. Same problem.

0 Karma

rechteklebe
Path Finder

the stars are filtered out..so for sure with the stars 😉

0 Karma
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, ...