Splunk Search

How to include the country in the PIE chart

jaibalaraman
Path Finder

Hi 

Can anyone help me with below query 

I have created a pie chart based on the error message, however i am not sure how to add country along 

index=test
| iplocation Properties.ip
| dedup Properties.ip
| stats count by event.Properties.errMessage

jaibalaraman_0-1712097532525.png

jaibalaraman_1-1712097568683.png

 

 

 

 

Tags (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

You will either have to show the pie chart as a trellis chart so it shows one chart for each country or create a composite field containing both country and error message, as the pie chart can only show one dimension, i.e.

index=test
| iplocation Properties.ip
| dedup Properties.ip
| eval composite=country.":".'event.Properties.errMessage'
| stats count by composite

 Then the composite will be Australia:OK and so on.

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Create a composite field with the two labels concatenated and count by that

0 Karma

jaibalaraman
Path Finder

Create a composite field with the two labels concatenated and count by that

I am not sure how to create composite filed, could you please advice on this please

 

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...