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

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...