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!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...