Splunk Dev

Getting field and value count in the same format

Atchyuth_P
Path Finder

Hi,

 
I have two values in a field named (Online Booking) and want to display the same in tabular format and I tried eval, stats command but not giving the expected result.
 
Question : Total count to find out the option to book table
 
 
Atchyuth_P_2-1632624367086.png

and the output that i am expecting is

Atchyuth_P_3-1632624396799.png
 

Please let me know which command needs to be used and also reference books for learning development, I am completely new to Splunk

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

For SimpleXML dashboards, add a format block to the table with the useThousandSeparators option

https://docs.splunk.com/Documentation/Splunk/8.2.2/Viz/TableFormatsXML 

 

        <format type="number" field="count">
          <option name="useThousandSeparators">true</option>
        </format>

 

0 Karma

Atchyuth_P
Path Finder

Thank you @ITWhisperer for suggesting the method of using XML .

I have tried with the command (chart count by "Online Booking") gives me the accurate search result and also tried with XML and my dashboard looks quite good.

 

0 Karma
Get Updates on the Splunk Community!

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened Audit Trail v2 wasn’t written in isolation—it was shaped by your voices. In ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...