Training + Certification Discussions

Visualization from different fields

kiran007
Explorer

Hi,

I wanted to create a Visualization from 3 different fields shown below.

kiran007_0-1620413137215.png

 

kiran007_1-1620413172025.png

 

 

the values are above 100. so, I am unable to get any trend on graph. Kindly help me out from this.

Thanks & Regards,

S.Kiran.

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Your extraction is replacing ms with spaces which means it will continue to be treated as a string rather than a number. Also, if you extract to the field name you want, you don't have to then rename the field.

| rex field=data.msg "cancelAppointment.\s(?P<CA_Time>\d*)"
| rex field=data.msg "bookAppointment.\s(?P<BA_Time>\d*)"
| rex field=data.msg "appointmentCheckIn.\s(?P<AC_In_Time>\d*)"

 

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Your extraction is replacing ms with spaces which means it will continue to be treated as a string rather than a number. Also, if you extract to the field name you want, you don't have to then rename the field.

| rex field=data.msg "cancelAppointment.\s(?P<CA_Time>\d*)"
| rex field=data.msg "bookAppointment.\s(?P<BA_Time>\d*)"
| rex field=data.msg "appointmentCheckIn.\s(?P<AC_In_Time>\d*)"

 

0 Karma

s2_splunk
Splunk Employee
Splunk Employee

I am not sure what visualization you are expecting, but you are missing an X-Axis value (like _time) in your result set for a graph to work. Try

... | table _time AC_IN_time, ....

and it should plot your three values over time and auto-adjust the Y-axis scale to match your values.

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!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Enhance Security Operations with Automated Threat Analysis in the Splunk EcosystemAre you leveraging ...

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...