Splunk Search

Chart Android over Iphone apache logs

daniel333
Builder

so I have

index=apache useragent=android | timechart etc etc
index=apache useragent=iphone | timechart etc etc

but what I want to do is group by platform. Basically I want a line for iphone, android, mac, windows. How can I limit my user agents to be grouped by platform?

index=apache | timechart status by useragent

kristian_kolb
Ultra Champion

You might be wanting;

... | timechart count by useragent

Possibly you also want to control the size of the time slices used by the timechart, with the use of span=<span>

Read more in the docs.

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart

/K

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...