Refine your search:

What's the best way to create a search to identify which hosts have not sent a syslog message to Splunk in the last 2 days?

asked 01 Jun '10, 22:08

matt's gravatar image

matt ♦♦
3.6k131440
accept rate: 81%


2 Answers:

Are you talking specifically sourcetype=syslog or just any events from a host? It's easy to do any events from a host with something like this:

| metadata index=main type=hosts | eval age = now()-lastTime | where age > (2*86400) | sort age d | convert ctime(lastTime) | fields age,host,lastTime

Does that work for you?

link

answered 01 Jun '10, 22:25

Lowell's gravatar image

Lowell ♦
11.2k91291
accept rate: 41%

I tried this search an got 0 search results

link

answered 17 Jun '10, 18:33

ram.malhotra's gravatar image

ram.malhotra
11
accept rate: 0%

1

this could mean that you don't have any "lost" hosts

(18 Jun '10, 06:37) CerielTjuh
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1,685
×307

Asked: 01 Jun '10, 22:08

Seen: 1,332 times

Last updated: 17 Jun '10, 18:33

Copyright © 2005-2012 Splunk Inc. All rights reserved.