Splunk Search

Plot graph using timechart


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.

0 Karma


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.


0 Karma
Get Updates on the Splunk Community!

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...

Ready, Set, SOAR: How Utility Apps Can Up Level Your Playbooks!

 WATCH NOW Powering your capabilities has never been so easy with ready-made Splunk® SOAR Utility Apps. Parse ...

DevSecOps: Why You Should Care and How To Get Started

 WATCH NOW In this Tech Talk we will talk about what people mean by DevSecOps and deep dive into the different ...