Installation

How do I send the txt file from Universal Forwarder to HF to IDX?

human96
Communicator

hi, i know many have answered this question before but i didn't find any perfect and detailed answer.

Setup :-

UF ---> HF ----->  IDX

Q1. i have a file called test.txt ( Location :- /send/test.txt ). i want to send the txt file from to UF to HF to IDX.                ( Receiving  ports 9997 is open and configured for all as well )
        How do i do it ?

0 Karma
1 Solution

SanjayReddy
SplunkTrust
SplunkTrust

Hi @human96 

First you need to create inputs.conf in UF  under 

$SPLUNK_HOME/etc/system/local/
($SPLUNK_HOME is location where splunk installed ex: /opt/splunk/)

inputs.conf contents 

[monitor:///send/test.txt]
sourcetype = <give the sourcetype name which identify the logs> ex:apache_logs
index=<name of index that created in indexer>

index is location where data is stored inside indexer, if index is not created you need to create one 

In outputs.conf of UF 
mention HF Ip and port numers

In outputs.conf of  HF
mention IDX Ip and port numers

example 

[tcpout:group1]
server=IP:9997

In HF and idx please enable 9997 port if not aleady done  

$SPLUNK_HOME/splunk enable listen 9997

UF ---> HF ----->  IDX


View solution in original post

SanjayReddy
SplunkTrust
SplunkTrust

Hi @human96 

First you need to create inputs.conf in UF  under 

$SPLUNK_HOME/etc/system/local/
($SPLUNK_HOME is location where splunk installed ex: /opt/splunk/)

inputs.conf contents 

[monitor:///send/test.txt]
sourcetype = <give the sourcetype name which identify the logs> ex:apache_logs
index=<name of index that created in indexer>

index is location where data is stored inside indexer, if index is not created you need to create one 

In outputs.conf of UF 
mention HF Ip and port numers

In outputs.conf of  HF
mention IDX Ip and port numers

example 

[tcpout:group1]
server=IP:9997

In HF and idx please enable 9997 port if not aleady done  

$SPLUNK_HOME/splunk enable listen 9997

UF ---> HF ----->  IDX


gcusello
SplunkTrust
SplunkTrust

Hi @human96,

you have to:

  • configure UF to send logs to the HF (using outputs.conf),
  • configure UF to send logs to the HF (using outputs.conf),
  • configure HF to receive logs from the UFs (using inputs.conf),
  • configure IDX to receive logs from all the Forwarders (UFs and HFs) (using inputs.conf),
  • Then you have to create an inputs.conf on the UF to take logs.

The best approach is to put the inputs.conf in an App and deploy the App to the UF using a Deployment Server.

To have more infos see at:

https://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Forwarddata 

https://docs.splunk.com/Documentation/Splunk/8.2.5/Forwarding/Aboutforwardingandreceivingdata#:~:tex....

https://docs.splunk.com/Documentation/Forwarder/8.2.5/Forwarder/HowtoforwarddatatoSplunkEnterprise

Ciao.

Giuseppe

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...