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.

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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