Splunk Search

splunk report

rameshlpatel
Communicator

Hi,

I have timeDif values(Time diffrence between start and stop) which I want to point in chart with time period.

please help me.

Tags (2)
0 Karma

jhowkins
Path Finder

Take a look at the solutions I've provided below. Let me know if that works for you.

0 Karma

jhowkins
Path Finder

I suspect you're only getting single points on the linechart but they are not connected. If this is the case, try the following;

Assuming you've already set your chart type to "Line"...
- Click "Format" to the upper left of the chart on the Visualization tab
- From the General tab, click the "Connect" button (right-most) next to "Null Values"
- Click Apply and your linechart will have connected dots

If your events are not continuous, you could also acheive the same thing by setting cont=f ...

... | timechart cont=f avg(timeDiff)

I've made some assumptions here. Hopefully I answered your question -- if not, I'd need more detail... a screenshot is always nice.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Does that field contain numeric values?

Posting some sample data would indeed make it a lot easier than stabbing in the dark.

0 Karma

rameshlpatel
Communicator

index="OCSDEV" | timechart avg(timeDiff)

Here timeDiff ( in milliseconds) is field I am extracting from the logs.

0 Karma

somesoni2
Revered Legend

Could you please share your current query and sample output of that query? It would be lot easier to provide suggestion if we can see what you see.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

So..... something like this?

base search | timechart avg(milliseconds)

Set the visualization to line charts.

0 Karma

rameshlpatel
Communicator

Yes I am doing..

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Make sure you're using the correct field name in the avg(fieldname) call.

0 Karma

rameshlpatel
Communicator

Its not showing any line in chart

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

In what way?

rameshlpatel
Communicator

Thanks for your answer,I tried but its not working.

0 Karma

rameshlpatel
Communicator

I have the values(milliseconds) which I am getting from logs. In chart In X axis=Time period and in Y axis=milliseconds.

In this i need line chart which goes up and down based on milliseconds value coming from logs.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Do elaborate more on your data and the desired results.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...