Dashboards & Visualizations

geom column not populated in the Statistics tab

chintan_shah
Path Finder

I am trying to create a Choropleth map for US states where i am trying to show the number of sales per States, my SPL is:
stats count(sales) as Sales by STATE_CD |geom geo_us_states featureIdField=STATE_CD but trying to run it,
the geom tab in Statistics is not getting populated and the Visualizations shows the US maps but the color are not present.
Can someone please help me out where i am missing, do i need to configure anything else?

alt text

Tags (2)
0 Karma
1 Solution

dmaislin_splunk
Splunk Employee
Splunk Employee

You will need to have the State names where AZ = Arizona and not the abbreviations if I remember correctly. Perhaps you can fix the data or you can just use a lookup to automatically create a State field based on the STATE_CD field.

I just tried this on some quick data and it works fine....

index=* | stats count by State | geom geo_us_states featureIdField="State"

alt text

View solution in original post

chintan_shah
Path Finder

Thanks dmaislin, it worked

0 Karma

dmaislin_splunk
Splunk Employee
Splunk Employee

Excellent! Please upgoat my answer!

0 Karma

dmaislin_splunk
Splunk Employee
Splunk Employee

You will need to have the State names where AZ = Arizona and not the abbreviations if I remember correctly. Perhaps you can fix the data or you can just use a lookup to automatically create a State field based on the STATE_CD field.

I just tried this on some quick data and it works fine....

index=* | stats count by State | geom geo_us_states featureIdField="State"

alt text

jzapantis
Path Finder

Can you please explain when to use: featureIdField="" - and also what should be put in place of field? What conditions must be met for a field to be used as a featureIdField?

Thank you 🙂

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...