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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...