Getting Data In

Syslog from switch to indexer

chrisitanmoleck
Path Finder

Hello,

we want to send syslog from cisco switches directly to the splunk indexer.
So I made a NAT from UDP 514 to 5447 and a new UPD data input (for 5447).

Is it also neccessary to define these data at the inputs.conf of the indexer?

Best Regards
Christian

0 Karma

chrisitanmoleck
Path Finder

I found the solution:

  1. Port forwarding was not enabled for the interface. 1
  2. The NAT-Rule was not saved. 2
0 Karma

chrisitanmoleck
Path Finder

Unfortunately it doesn't work.

IP-Tables NAT: /usr/sbin/iptables -t nat -A PREROUTING -m udp -p udp --dport 514 -j REDIRECT --to-ports 5447
Firewall entries for 5447 and 514

Entry in $SPLUNK_HOME/etc/system/local/inputs.conf

[udp://10.23.112.64:5447]
disabled = false
sourcetype = syslog
index = switches

This creates a new data input.

I struggeling with your command, because the splunk running user has some security protection, so that I can't execute it.

In metrics.log I have some of these entries:

04-19-2018 13:43:59.762 +0200 INFO  Metrics - group=udpin_connections, 10.23.112.64:5447, sourcePort=5447, _udp_bps=0.00, _udp_kbps=0.00, _udp_avg_thruput=0.00, _udp_kprocessed=0.00, _udp_eps=0.00

Otherwise I can't find any data in splunk to the switch.

0 Karma

mayurr98
Super Champion

I think you would need to configure inputs.conf for port 5447 at the indexer.

go to /opt/splunk/bin/ on indexer and run this command.

     ./splunk add udp 5447 -sourcetype syslog

Refer this doc for more
https://docs.splunk.com/Documentation/Splunk/7.0.3/Data/Monitornetworkports#Examples

let me know if this helps!

0 Karma

starcher
Influencer

Though you can syslog to indexers. Don’t. Send to a syslog server of your flavor and use a universal forwarder to pickup logs.

http://www.georgestarcher.com/splunk-success-with-syslog/

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

    Thursday, June 25, 2026  |  11AM PDT / 2PM EDT  Duration: 1 Hour (Includes live Q&A) Register to ...

Analytics Workspace deprecation

As of Splunk Cloud Platform 10.4.2604 and Splunk Enterprise 10.4, Analytics Workspace is now deprecated. ...

Splunk Developer Day Recap: Building, Publishing, and Growing on the Splunk Platform

Splunk Developer Day brought the Splunk developer community together for a practical look at what it means to ...