Splunk Search

Syslog forwarding and load balancing

jwillaime
Explorer

Hello,

I would like to know if it is possible to have load balancing for the syslog forwarding feature of Splunk. For exemple, is it possible to have something like the following in outputs.conf:

[syslog:syslog_fwd]
server = server1:514, server2:514
type = udp

Thank you in advance.

Tags (1)
0 Karma

nickhills
Ultra Champion

According to the documentation you should be able to do this, using the following syntax

[syslog]
defaultGroup = syslog:syslog_fwd_svr1, syslog:syslog_fwd_svr2

[syslog:syslog_fwd_svr1]
server = server1:514

[syslog:syslog_fwd_svr2]
server = server2:514

However, I have not tested this, nor can I guess how (or if) it will load balance messages.
Since its UDP, you should probably expect some level of duplication & inconsistency.

Side note: this feature is not available on Universal Forwarders

https://docs.splunk.com/Documentation/Splunk/7.2.3/admin/Outputsconf#Syslog_output----

If my comment helps, please give it a thumbs up!
0 Karma

BainM
Communicator

No, it is not possible to do that with a single port. You will need to designate a different port for server2.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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