Splunk Search

Send command with SH

New Member

Hi everyone,

I would need a .sh script that allows me to read only the second line of a file and then send it to machine B.

Example file:



the file is in the path:
C:\Program Files\Splunk\var\run\splunk\csv

only the second row "row2_send_to_machine" (contains a unix command) must be sent to machine B

once the command has been sent, the file timestamp_pippo.csv must be deleted.
can you help me? I'm not familiar with .sh

0 Karma
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!