Deployment Architecture

Forward Data to Splunk Server

Kai191
New Member

Hi, I am new to Splunk and I would like to ask how to send data over from the client PC over to my Splunk server, which is in a VM workStation. (I know it had to use a fowarder, but I just could't get my data to send over, and config, the receiver to using port 9997.(I am capturing tcp packet))

0 Karma

templier
Communicator

Example my inputs.conf from one of computer:

[default]
host = hostname

[monitor:///var/log/Snort_log]
disabled = false
sourcetype = snort_alert_full
index = snort

For test you can specify the directory with the syslogs and change sourcetype.


[monitor:///var/log/syslog.log]
disabled = false
sourcetype = syslog
index = main

And restart.

In _internal index you can see information about the connection forwarder to server.
In search line enter index="_internal"

0 Karma

neelb
New Member

how can i understand that is data is sent to the indexer from forwarder ? And indexer is really receiving the data.

0 Karma

neelb
New Member

Hi,

I am new to splunk. I used splunk forwarder to forward data to splunk indexer(receiver). Can you please suggest how to check on the receiver that the data sent from the forwarder is indexed.

Thanks,
Neel

0 Karma

neelb
New Member

In output.conf the setting is already done. I set previously. Please send the input.conf so that I can configure it.
I already added a path to splunkforwarder to monitor using the following command:

./splunk add monitor

how can i understand that is data is sent to the indexer. And indexer is really receiving the data.

0 Karma

templier
Communicator

[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = Server (indexer) ip:9997

[tcpout-server://Server (indexer):9997]

In inputs.conf add directory where you need to take logs.

I use splunk for colleck snort logs from ubuntu and windows. If you want i can send you me config file as an example.

0 Karma

templier
Communicator

Ok, Fedora on server (indexer) and fedora on machines where it will be necessary to collect data?

First thing to do to set the port to transfer data on the server (indexer) go Settings-Forwarding and receiving-Receive data-Add new and add 9997 porn (
or other free open port).
After that go to the machine where you installed splunk forwarder (/opt/splunkforwarder/etc/system/) and edit outputs.conf

0 Karma

neelb
New Member

i am using Fedora(linux).

0 Karma

templier
Communicator

Hello!

What operating system are you using?

0 Karma

ddarmand
Communicator

Can you use the universal forwarder ?

0 Karma

vincesesto
Communicator

Hey Kai191, with regard to the logs, if you are on the forwarder and you go to the following location, you will be able to see the log files:
/opt/splunkforwarder/var/log/splunk

Have a look through the splunkd logs...this should let you know if there are any connection issues with the forwarder connecting to the indexer

0 Karma

Ayn
Legend

That is likely the same thing.

0 Karma

Kai191
New Member

I only installed the splunk forwarder

0 Karma

Kai191
New Member

Hi Vince,
1) I am unable to telnet.
2) I had set the file in the required path.
3) I used netstat -a it show 0.0.0.0 9997 is listening (is it correct?)
4) how do i see the splunkd or metric log?
I am just a beginner in splunk, so your patience is much appreciated

Thanks in advance for the help.

0 Karma

vincesesto
Communicator

Hey Kai191,
I think Ayn is trying to get some further information on your set up and what troubleshooting you have performed so far. Can you please do the following and provide the answers:
1. can you telnet from the forwarder to indexer on port 9997, eg; telnet 9997
2. Have you set up the /opt/splunkforwarder/etc/system/local/outputs.conf and print out the info
3. Can you please run a netstat to see if ports are listening on the index host, eg; netstat -tnap | grep 9997
4. Are you seeing any errors in the splunkd or metrics logs on the forwarder.

Regards Vince

0 Karma

Kai191
New Member

I am currently stuck at unable to send data over to my splunk server.

0 Karma

Ayn
Legend

Some more information could certainly help - where are you currently getting stuck?

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...