Dashboards & Visualizations

How to apply values in dropdown to the search?

Julia1231
Communicator

Hi,

I want to create a line chart that contains value come from an index to see the data trend.
Something like this:

 

 

|timechart span=10min avg(value) by id

 

 

   Knowing that I have:

   - An index, I have id and their events (values corresponding)

   - A lookup csv which contains the id, address.

I want to do a filter the search by province (group by address). Knowing that a province will have several id.

So, I create a dropdown in which I find all the province  --> done

---> Next,  I have to use the dropdown token to apply to the search but I have no info of the province in the index.

And the id are displayed as below, which prevent me from using append the province to each id:

_time id1 id2 id3

 

Thanks for your help!

Labels (4)
0 Karma

Julia1231
Communicator

I have tried to use 

 

|lookup lookup.csv id OUTPUT address

 

then group the address with the same logic in the dropdown.

After that I compare the selected value in dropdown and the province in the search.

But it remains a problem that when I choose All from dropdown (contains all addresses), it returns nothing but I want to have data from all address in fact

0 Karma

Manasa_401
Communicator

Hi @Julia1231 

What is the value you set for All in the dropdown?

To get all data set the value as "*"

<choice value="*">All</choice>

Thanks,

Manasa

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Julia1231,

if the IP that you have in the lookup are public IPs, you can map them using the iplocation command and in this way extract the region, the country and the city,

I don't know what you mean with province but maybe you can group more cities in provinces.

Ciao.

Giuseppe

 

0 Karma

Julia1231
Communicator

Hi @gcusello ,

I group the adress by the common pattern in the name, not the real IP that I can use to find the region, etc. I just took an example as province.

 

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...