Getting Data In

How to route a subset of data to a local splunk indexer and all the data to a 3rd party system?

raybowden
New Member

Scenario

  • I am trying to send all Windows Forwarded events to the 3rd party appliance, and send only forwarded events with the words "Avecto Defendpoint Service" to the on premise Splunk Indexer.

I have been following - http://docs.splunk.com/Documentation/Splunk/7.0.2/Forwarding/Routeandfilterdatad

And have the following config files.

Inputs.conf

[default] 
host = xxx-xxx-xxx 

[WinEventLog://ForwardedEvents] 
disabled = 0

Props.conf

[WinEventLog:ForwardedEvents] 
TRANSFORMS-routing = routeAll, routeSubset 

Transforms.conf

[routeAll] 
REGEX=(.) 
DEST_KEY=_TCP_ROUTING 
FORMAT=3rdpartyappliance

[routeSubset] 
REGEX=(Avecto) 
DEST_KEY=_TCP_ROUTING 
FORMAT=indexers,3rdpartyappliance 

Outputs.conf

[tcpout] 
defaultGroup = nothing 

[tcpout:3rdpartyappliance] 
server = xxx.xxx.xxx.xxx
# sets the output to raw format. 
sendCookedData = false 

#### Outputs to Splunk Indexer #### 
[tcpout:indexers] 
server = xxx.xxx.xxx.xxx

Results

If I remove defaultGroup=nothing from outputs.conf. Any event is duplicated to the internal and external indexer, but I feel I don't have the right REGEX for only the events that I want to send internally.

0 Karma
1 Solution

splunker12er
Motivator

try this,

REGEX=(.+(?i)Avecto.+)

View solution in original post

0 Karma

splunker12er
Motivator

try this,

REGEX=(.+(?i)Avecto.+)
0 Karma

raybowden
New Member

This works! 🙂 Thanks for your help 🙂

0 Karma

somesoni2
Revered Legend

@raybowden, glad @splunker12er's answer resolved the issue you were having. I've converted his comment as an answer, so if there are not further question in the same topic, please close this question by accepting this answer.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...