Splunk Search

Graphs for field values

splunkingsplunk
Explorer

Hi everyone I have extracted a field and I need to chartit with respect to time.

i am using sourcetype="hostname" | chart first(VOLumeBytes) by _time | makecontinuous VOLumeBytes span=10

But i am getting the graph with respect to count not the value of the field. I mean the no of field values present at that second. Please let me know how can i chart the field value with respect to time not the field count..

Also is tehre any way i can divide the value in field2 by 1024*1024 and teh chart it.

Thanks

Tags (3)
0 Karma

jdunlea_splunk
Splunk Employee
Splunk Employee

Have you tried using timechart? That is specifically created for charting over time.

Something like " | timechart first(VOLumeBytes)"

Also to perform numerical calculations on a field, you can use "eval".

eg: " | eval field2-1=field2/(1024*1024) | search field2-1 "

splunkingsplunk
Explorer

Thank you very much I got it..

0 Karma

Ayn
Legend

Also, as you're saying you're getting a graph of count rather than the values...are you referring to the graph shown in the default search view? Because that graph will always show count of events by time. You'll want to use the Report builder to create your own visual charts.

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...