Splunk Search

Plot graph using timechart

hikari992
Explorer

Hi everyone, I'm quite new to splunk. I'm trying to plot a graph using timechart with starting time of the event and the ending time of the event.

This is my search query:


sourcetype="Traffic" | stats earliest(_time) as startOfEvent latest(_time) as endOfEvent range(_time) as duration by Message

This is the return result from the query:


Message | startOfEvent | endOfEvent| duration

msg1 | 1368457298 | 1368459923 | 2625

msg2 | 1368457298 | 1368457821 | 523


How can i turn this into a timechart?

Any help is appreciated.
Thanks!

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

If you could include some metrics you would like, it might be easier to show you specifics. But the general format is:

sourcetype="Traffic" | timechart count by Message span=5m

This will show the count by Message over time.

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

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...