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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...