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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...