bdenning / samhain-addon-for-splunk Goto Github PK
View Code? Open in Web Editor NEWSamhain Addon for Splunk Enterprise
License: Creative Commons Zero v1.0 Universal
Samhain Addon for Splunk Enterprise
License: Creative Commons Zero v1.0 Universal
Samhain used kvp's like key= which is annoying because the < > brackets get included in the field value. I'm going to have to extract these values to clean this up.
I need to change this:
SEDCMD-remove-sof = s/\[SOF\]//
To this:
SEDCMD-remove-sof = s/^\[SOF\]$//
Just to ensure it's only ever going to remove the [SOF] marker and not a file that happends to be called "example-[SOF]-file.txt" (unlikely).
The calculated field for file_name will work perfectly... until it encounters a change made to the root directory "/" because it has a object_name of "/" and a object of "/". The result will be a file_name of "//" which is wrong.
Change this:
EVAL-file_name = object_path . object
To something like this:
EVAL-file_name = if(object=="/", object, 1=1, object_path . object)
Unfortunately, Samhain doesn't provide any obvious indication from the events it generates as to whether the path is a file or directory. But.. everything in Unix is a file right?
I'll investigate to see if there might be either config that can be turned on or some other turning to distinguish between files and directories.
This app has now been posted on https://splunkbase.splunk.com.
We should:
Check out the "action" field options listed in the doco for what values should be possible. I believe the information exists to add "read" and "acl_modified" values, but more work will be required.
http://docs.splunk.com/Documentation/CIM/latest/User/ChangeAnalysis
It goes without saying that having sample logs for development and regression testing is a good thing.
https://splunkbase.splunk.com/app/1924/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.