Splunk Enterprise

HF - log routing to Search Head AN to syslog server

zoltansoos
Loves-to-Learn Lots

Dear All,

 

can you please help me.

Tried to solve the below question, but up to this moment it seems I could not find the precise solution.

 

3 machines in the Splunk system.

Machine 1: Windows server, Search Head and Indexer server

Machine 2: Windows Domain Controller with deployed heavy forwarder on it (only local Windows log collection).

Machine 3: syslog server

 

The goal to send the local logs from heavy forwarder (Machine 2) to:

-syslog server (all the local logs - Windows Security logs as well - and the line breaks should be changed to “;”)

-Search Head Server (only the Windows Security logs without any modification)


Modified the .conf files in the C:\Program Files\Splunk\etc\system\ on heavy forwarder server.

Of course I can see the Windows logs on the heavy forwarder, and some logs are sent to syslog / Search Head server, but not what I want…

 

outputs.conf
...
[tcpout:indexer_group]
server=<searchheadserveripaddress>:9997

[syslog:syslog_group]
server=<syslogserveripaddress>:514
type=tcp
...


transforms.conf
...
[send_to_syslog]
REGEX=.
DEST_KEY=_SYSLOG_ROUTING
FORMAT=syslog_group

[send_to_indexer]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=indexer_group
...

 

props.conf
...
[source::WinEventLog:Security]
TRANSFORMS-routing=send_to_indexer, send_to_syslog
priority=5

[host::*]
TRANSFORMS-routing=send_to_syslog
SEDCMD=s/[\n\r]/;/g
priority=10
...

 

Thank you.

Labels (2)
0 Karma

gmorreale_splun
Splunk Employee
Splunk Employee

My 2 cents here are: don't do it!
Creating 2 or more output groups with one or more 3rd party devices as receivers will only lead to problems.
Every time the connection to the syslog server goes down or is too slow or if the syslog server is not responsive, all forwarding stops, also for all the other outputs ...

If they really want to do it, you should do it with 2 separate HFW, so as not to cause interference. An HFW that sends data to Splunk and another parallel that sends to 3rd party devices!

My "2 millions" "pre-sales" question: WHY would you want a customer to use Splunk set-up to send data to third party tools and being this "POC" scope, sending to third party tools?  🤔 

Thanks

0 Karma
Get Updates on the Splunk Community!

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

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

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...