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
SplunkTrust
SplunkTrust

@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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...