Getting Data In

How to substitute a group of multiple lines with a single value

bkogami
Explorer

Hi,

I'm using eventgen to create sample data.

Whenever someone runs a command, the Linux audits will record the event over multiple lines.

For example, if someone uses sudo to run 'cat /etc/shadow'. The audit log will record the user's attempt to access sudo, then another line that will show the authentication status (success or failure), then the actual command, '/etc/shadow', etc...

Is there a way to set the token replacement to change the username, hostname, time, command for that event and do it, say 30 times. Each event which has multiple lines with have the same username, hostname, time and command. Then the next event will have a different username, hostname, time and command?

Thanks,

Bruce

Labels (1)
Tags (2)
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...