Hi everyone,
I am trying to find out index name , sourcetype for 100+ (128) hosts. Since I am working in a multisite cluster where all 3 SH can communicate with each other, I am trying to avoid using index=*
I have tried below queries but none works -
| metadata type=hosts | search host IN ("host1","host2","host3") | rename _meta_index as index | join host index [ | stats values(sourcetype) as sourcetype by host index ]| tstats count where host IN (host1, host2, host3,.. hostn) by index sourcetypeas well as stats query none works.
Please help!
In what way do they not work? Please can you be more specific about your issue.
Having said that, multi-value fields from stats are often truncated to 100 entries. You could try adding
limit=128or even
limit=0
@ITWhisperer MV from stats values() has no limit, but stats list() does have the 100 limit...
Have you ever seen values get truncated?