Getting Data In

Selectively forwarding syslog to a syslog server

JovanMilosevic
Path Finder

Hi,

I have a number of syslog feeds coming into my indexer on udp port 514.

I want to forward the syslog from one of the hosts on to another syslog server.

I have set up entries in inputs.conf, props.conf, and transforms.conf, and can successfully forward all syslog data to the syslog server, but cannot do as the manual suggests, and forward from one host.

If I use [syslog] as the stanza name in props.conf, all syslog gets forwarded as one would expect.

If I use [source::upd:514] as the stanza in props.conf, the same - all syslog gets forwarded.

If however, I do as the manual suggests, and use [host::hostname] - nothing gets forwarded. I have also tried using the IP Address instead of the hostname, still nothing.

Am I missing something obvious here ?

Thanks.

Tags (1)
0 Karma

yannK
Splunk Employee
Splunk Employee

If you want to forward a subset of your events as syslog, read this document :
http://docs.splunk.com/Documentation/Splunk/5.0.1/Deploy/Routeandfilterdatad#Replicate_a_subset_of_d...

0 Karma

bmacias84
Champion

Why manual are you referring to?

0 Karma

Damien_Dallimor
Ultra Champion

Have a look at the specs for outputs.conf

At the end of that page , you will find a section detailing how to configure props.conf, transforms.conf and outputs.conf to route events to another syslog server

0 Karma

AppServices
Explorer

I believe hostname is referring to the value of host that is set in conjunction with a monitored file.

Being that you are receiving these files via udp, your inputs.conf might look something like this:

[udp://514]
connection_host = syslog.company.com
sourcetype = ltm_log
source = ltm

In this example, you would set hostname to syslog.company.com in props.conf.

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

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...