Splunk Search

Log Volume Indexed.

sanju005ind
Communicator

I would like to display the volume indexed from several indexed into following chart.

  • Past 24hrs log volume by time (line graph)
  • Past week’s log volume (bar chart – bar for each day)

It should be Per Host combined since would be filtering the hosts by tags.

Tags (2)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

earliest=-24h index=_internal source=*metrics.log group=per_host_thruput | rename series as host | tags | where tag=mytag | timechart span=1h sum(kb) by host

earliest=-7d@d latest=@d index=_internal source=*metrics.log group=per_host_thruput | rename series as host | tags| where tag=mytag | timechart span=1d sum(kb) by host

sanju005ind
Communicator

"index=_internal metrics group=per_host_thruput startdaysago=7 | rename series as host | tags | search tag::host=MyTags | bucket span=1d _time | stats sum(kb) as kb by date_mday" . This works for me.Is there any fine tuning to be done?

0 Karma

sanju005ind
Communicator

"index=_internal source=*metrics.log group=per_host_thruput | rename series as host | tags | search tag::host=mytag" this seems to work However when I check this I get very less hosts compared to "
| metadata type=hosts | TAGS | search tag::host=mytag | eval host=lower(host) | fields host| rename host as "series" | join
series[search index="_internal" source="*metrics.log" per_host_thruput | stats sum(kb) by series] "

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...