Hello
I use the code below in all my dashboard searches in order to filter results by SITE from a dropdown list and it works perfectly
| lookup lookup_cmdb_fo_all.csv HOSTNAME as host output SITE
| search SITE=$tok_filtersite|s$
But I need to use savedsearches in my dashboard
So I call a search from my dshboard like this
| loadjob savedsearch="admin:SA_xxxx_xx_xx_xx_xx_sh:Hardware - Battery last 10"
| search SITE=$tok_filtersite|s$
And I keep | lookup lookup_cmdb_fo_all.csv HOSTNAME as host output SITE
in the search
But I have no results only when I delete | search SITE=$tok_filtersite|s$
...
So there is an issue with this token in the savedsearches
What I have to do please??
Hi
Are you getting SITE
info after executing savedsearch
hi
I dont understand what you mean
what I need is to :
1) execute my search in a savedsearch
2) filter the data by SITE from the dropdown list in the dashboard (tok_filtersite)
if i am doing this I have no results so I ont get the SITE
| loadjob savedsearch="admin:xxxxx:Hardware - Battery last 10"
| search SITE=*
oh I think I have found
its because in the search I rename SITE by Site
so | search SITE=$tok_filtersite|s$ has to be replaced by | search Site=$tok_filtersite|s$
Whether it's working now?
Yes
if I do | loadjob savedsearch="admin:xxxxx:Hardware - Battery last 10"
| search Site=* it works
Good to know
Please accept to close the issue.
Please confirm whether are you getting values after executing this statement | loadjob savedsearch="admin:xxxxx:Hardware - Battery last 10"
without | search SITE=*
if yes, SITE info is there?