Hello Team,
I have about 10K keywords to search. It is not practical to construct a large query like below
index=dev (key=val1 OR key=val2 OR key=val3.....key=val10000)
Is there any other way to search?
Thanks
Phaniraj
Could you try to put those keywords on lookup file or kv-table and use it as a sub search?
Something like this
index=dev [ |inputlookup keys.csv | fields key | format ]
r. Ismo
Could you try to put those keywords on lookup file or kv-table and use it as a sub search?
Something like this
index=dev [ |inputlookup keys.csv | fields key | format ]
r. Ismo
Hi,
Should key (fields key) be the name of the field in the event log?
Thanks
Phaniraj
Hi,
I got the query working. Thanks a lot for the help!
Thanks
Phaniraj
could you just do something like the below with a wildcard
index=dev key=val* | stats count by key
I can't use the regular express * as the values are unique without any patterns