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
Get Updates on the Splunk Community!

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...

What’s New in Splunk Cloud Platform 9.1.2308?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2308! Analysts can ...