Getting Data In

Forward filtered logs to indexer and full logs to third party syslog server

archme
Explorer

Hello,

I am currently forwarding logs from uf to HF to idx.

What I am trying to achieve is drop windows event with the event code 4674 for example from being sent to idx. At the same time, forward all the logs including the events with the event code 4674 to a 3rd party syslog server from the HF.

While configuring the HF, I found:
1) there is a delay in sending the logs to syslog server. I noticed that I received it roughly 15 minutes after the event time.
2) I configured the event code 4674 to send to nullqueue. By doing so, it dropped the event from being sent to idx. However, it is also not forwarding this event to the 3rd party syslog server. I need it only drop the events from being sent to idx. It has to send this event to the syslog server.

Not sure what is wrong..hope someone can advise.

Below is my outputs.conf setting:

[tcpout]
defaultGroup = primary_indexers
[syslog]
defaultGroup = EverythingtoSSB
[syslog:EverythingtoSSB]
#sendCookedData=false
server=1.2.3.4:514
type=udp
maxEventSize=5096

Below is props.conf:

[WinEventLog:Security]
TRANSFORMS-set=wineventlog-setnull,routeAlltoSSB

Below is transforms.conf

[routeAlltoSSB]
REGEX=(.)
DEST_KEY=_SYSLOG_ROUTING
FORMAT=EverythingtoSSB

[wineventlog-setnull]
REGEX=(?m)^EventCode=(4674)
DEST_KEY = queue
FORMAT = nullQueue
0 Karma

somesoni2
Revered Legend

Try this for your Below for transforms.conf

[routeAlltoSSB]
 REGEX=(.)
 DEST_KEY=_TCP_ROUTING
 FORMAT=EverythingtoSSB,primary_indexers

 [wineventlog-setnull]
 REGEX=(?m)^EventCode=(4674)
 DEST_KEY=_TCP_ROUTING
 FORMAT = EverythingtoSSB
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...