Getting Data In

How could i read a text file in splunk Universal Forwarder with a batch script in splunk Server ?

Afef
Communicator

Hello, i want to read a txt file in splunk Universal Forwarder with a batch script in splunk Server ?
could anyone help me please ?
Thanks

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

next try to answer.....

take a look at the docs about scripted inputs http://docs.splunk.com/Documentation/Splunk/6.2.0/AdvancedDev/ScriptSetup this is also valid for the Splunk UF.

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

next try to answer.....

take a look at the docs about scripted inputs http://docs.splunk.com/Documentation/Splunk/6.2.0/AdvancedDev/ScriptSetup this is also valid for the Splunk UF.

cheers, MuS

Afef
Communicator

Thank you 🙂

0 Karma

MuS
SplunkTrust
SplunkTrust

Why would you need a batch script for this? The Splunk UF can read a txt file directly.

0 Karma

Afef
Communicator

I developped a batch script that read .txt files and do some treatment to extract data and then monitor the script by splunk server.

0 Karma

MuS
SplunkTrust
SplunkTrust

do you see my answer? looks like it's lost in space 🙂

0 Karma

Afef
Communicator

i don't see your answer !
i see only " Why would you need a batch script for this? The Splunk UF can read a txt file directly. "

0 Karma

MuS
SplunkTrust
SplunkTrust

now this is spooky, where are all my comments and answers?!??

0 Karma

piebob
Splunk Employee
Splunk Employee

it's because you used the word 'magic'--it's auto-blocked due to stupid spammers 😕 (i had to remove it temporarily to be able to post this comment).

MuS
SplunkTrust
SplunkTrust

HeHe, the über-spam-fighter gets block by anti-spam rules 🙂

Afef
Communicator

i don't see any answer !

0 Karma

Afef
Communicator

I see only your comments ! could you put the answer as a comment please ?

0 Karma

lmyrefelt
Builder

Well .. i see them all and you are filling up my mailbox today!

0 Karma

lmyrefelt
Builder

ooh sorry, correction, just your comments

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

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

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...