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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...