Getting Data In

Syslog and UDP (Data Input)

zhangru
Engager

I had a EC2 syslog client and a MacOS which installed the Splunk Enterprise. I want my Splunk Enterprise to be my syslog server. In that way, I should configure my syslog client to transfer syslog to Splunk Enterprise and nothing syslog server configure stuff need I make.

On Splunk server I created a UDP Data Input. I also exposed 514 port and specified an Index for this Data Input. I set SourceType as 'syslog'.

On syslog client side, I configured the destination to be *.* <Splunk Enterprise IP>:514 in its rsyslog.conf file.

I tried to use logger to generate syslog on my client side e.g. logger -p local0.crit "...", but there was no event showing up in my index when I did the search.

zhangru_0-1632355284254.png

Basically, in my understanding the Splunk Enterprise Server can function as a syslog server which can receive message from syslog clients. 

zhangru_0-1632356415430.png

(Screenshot is from:  https://www.youtube.com/watch?v=BQU-bsSCXhk)

Is there any step I did incorrect or do I miss any step? 

 

 

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

You might have forgoten reloading your syslog server or opening ports on firewall. Or your traffic can be filtered somewhere along the way.

But if you can avoid it, don't use splunk server itself as your syslog receiver - use external syslog (rsyslog or syslog-ng - maybe in form of sc4s) and "redirect" the data to HEC input. Splunk does indeed have raw tcp and udp inputs but they are not very efficient and not manageable if your installation grows in term of different types of sources.

I'd not use UDP if I could avoid - especially across the internet. It's unreliable and you will be losing events along the way.

Also, sending unencrypted logs across open internet introduces privacy risks.

So I'd advise you to set up a local syslog and either send data to HEC input on your splunk server or to a forwarder in your local infrastructure that would send the data to the server.

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!

Splunk App Dev Quarterly Roundup: AI, Agents, and Innovation!

Another quarter, another wave of innovation. From complex integrations to pushing the limits ...

What’s New in Splunk AI: Volume 02

Welcome to the second edition of “What’s New in Splunk AI” where we look at the latest and greatest updates, ...

Value Insights: Now Generally Available in the CMC

Organizations are under pressure to move faster, control cost, expand AI adoption, and prove value with more ...