Is there a way to get the last time a host touched a file, within a certain period, e.g. earliest=-24h? We got a request to do a "spot check" of 20 - 30 servers from a list of 720 servers, which according to someone's report run against splunk, have not written to /var/log/audit/audit.log in 24 hours. I think it's boring to manually ssh to servers and collect ls -l ouput, and so I thought it might be nice to ask splunk which servers it has entries for in the audit.log file over the last 24h, then compare that list with the provided list in order to check how good their report is. I have to use the GUI. First attempt (in fast mode). Tested with earliest=-1m index=X OR index=Y earliest=-24h source=/var/log/audit/audit.log | table host | dedup host As I watch the -24h query, I thought I'd ask if there are some more sane strategies to reduce the load. In *nix terms I would simply connect to a server and check the ctime of the file. The above query is just looking for all events in a 24h period, then depuping the list of servers. This seems a case of almost pure BFI. Good thing I am using index= and source=...
... View more