Getting Data In

Forwarder data not shown in results

nmythily
New Member

Hi
I am using Splunk universal forwarder to receive data in Splunk enterprise but data is not shown in the search result.

Splunk Enterprise and universal forwarder are in the same server.
Created index and assigned to the admin role. Set the port for listening in the receiver.
Below are the configuration details:

/opt/splunkforwarder/etc/system/local/outputs.conf
[tcpout]
defaultGroup=sp_index

[tcpout:sp_index]
server=10.100.103.209:9997

[tcpout-server://10.100.103.209:9997]

./splunk add forward-server 10.100.103.209:9997
./splunk add monitor "/var/www/spdev_mythily_data/test_data/*" -index sp_index -sourcetype _json -host 10.100.103.209

Thanks,
Mythily

0 Karma

woodcock
Esteemed Legend

If your forwarder is your Indexer, then there is no need to install the UF (in fact, as you are realizing, it may not work correctly out of the box); just install Splunk because the full version has everything that the UF has and more. If you must do it this way (for example, for learning or testing), then start completely over and when you are issuing commands to the forwarder, use /opt/splunkforwarder/... and only use /opt/splunk/... when sending commands to the Indexer/Search-Head. So at a minimum, you should change to this:

/opt/splunkforwarder/bin/splunk add forward-server 10.100.103.209:9997
/opt/splunkrorwader/bin/splunk add monitor "/var/www/spdev_mythily_data/test_data/*" -index sp_index -sourcetype
0 Karma

FrankVl
Ultra Champion

So, what troubleshooting have you done already?

Have you restarted both instances after performing these configurations?

Have you confirmed your Enterprise instance is listening on TCP 9997 (e.g. using netstat)? Have you checked that instance's splunkd.log for errors/warnings?

Have you checked your UF for errors/warnings in the splunkd.log? Both about the input as well as the output?

Have you ran a search over All Time, to ensure you're not missing the data because it has been misplaced on the timeline due to incorrect timestamp extraction?

What is the purpose of having UF and Enterprise on the same machine? Why not configure the input in the enterprise instance itself (to prevent confusion and perhaps conflicting ports).

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Don't run Splunk Enterprise and Universal Forwarder on the same server. It's not necessary. Splunk Enterprise can do everything a Universal Forwarder can do.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...