Splunk Search

Is it possible to diff file hashes to display if some of the hashes of /etc/ files have changed?

xilu87
New Member

Hi,

I have created a script input deployed on several servers which creates a lot of hashes from /etc folder and sub folders. ~1300 files with fingerprint

With rex I have extracted the fields:

_raw=272913026300e7ae9b5e2d51f138e674  /etc/filename  valid fields: hash=272913026300e7ae9b5e2d51f138e674  file=/etc/filename  host=server1, server2, server3, serverX
_time=every 2 minutes

My search is scheduled every 3 minutes:

index="linux" sourcetype="config_hash" | rex field=_raw "(?<hash>.*)\s\s(?<file>.*)" | diff attribute=file position1=1 position2=2

But I get irrelevant result. The result's file hash is the same.
It is possible to display if some of the hash of /etc/ files has changed?

Tags (3)
0 Karma

woodcock
Esteemed Legend
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...