- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
raiqb01
Engager
08-05-2024
04:29 AM
I have following search. how can I add indexes information in the results:
|tstats max(_time) as _time, where index=windows by host,index
|append [|metadata type=hosts index=win index=linux ]
| eval now=now() | eval diff= now - lastTime | search diff > 18000 | eval notreportingsince=tostring(diff,"duration")
| table host lastTime notreportingsince | convert ctime(lastTime) as lastTime
| table host notreportingsince lastTime,index
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
08-05-2024
05:17 AM
Try something like this
|tstats max(_time) as _time, where index=windows [|metadata type=hosts index=win index=linux
| eval now=now() | eval diff= now - lastTime | where diff > 18000 | table host ] by host,index
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
raiqb01
Engager
08-05-2024
04:48 AM
hi @ITWhisperer , I just need a list of hosts which are not reporting since last 5 days along with index information.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
08-05-2024
05:17 AM
Try something like this
|tstats max(_time) as _time, where index=windows [|metadata type=hosts index=win index=linux
| eval now=now() | eval diff= now - lastTime | where diff > 18000 | table host ] by host,index
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
08-05-2024
04:39 AM
What is it that you are trying to achieve that metadata is not giving you?
