All Apps and Add-ons

Does DB Connect 3.1.1 support _TCP_ROUTING?

bsanch2
Path Finder

We are trying to route DB Connect data to a different indexer, however, the traditional method of adding _TCP_ROUTING to the inputs.conf (or even db_inputs.conf) and creating an output.conf file does not work. Is there any way to route data to more than one indexer from a HF running DB Connect?

Thanks

0 Karma

unstable23
New Member

Had the same problem, figured it out, with some help from this:

https://answers.splunk.com/answers/452029/how-to-configure-http-event-collector-hec-with-tcp.html

DBConnect uses the HEC (HTTP Event Collector) to feed stuff into Splunk, and if you look at that doc, you'll see HEC doesn't use _TCP_ROUTING but uses a setting called optiongroup to do the same thing (all lower case, unlike what the doc says...)

Anyway, in the inputs.conf in the DBConnect app you'll see something like this for the events to point to HEC:

[http://db-connect-http-input]
disabled = 0
token = abcdefgh-1234-5678-9101-12345678901

First thing you need to do is create an outputs.conf in the local/ directory for dbconnect (its syntax is the same as for regular routing using _TCP_ROUTING) - mine is basically this:

[tcpout:logother]
server = 10.1.1.1:4567
sendCookedData = false

Then the inputs.conf gets updated to include an outputgroup:

[http://db-connect-http-input]
disabled = 0
token = abcdefgh-1234-5678-9101-12345678901
outputgroup = logother

Unlike _TCP_ROUTING, I don't think outputgroup lets you specify more than one destination (I tried, it didn't work), but you can put whatever in the outputs.conf stanzas to make it work.

0 Karma

thambisetty
Super Champion

@unstable23 

when outputgroup is used in inputs.conf, all db_inputs will forward events to that outputgroup. 

is there any way to forward events based on db input stanza.?

————————————
If this helps, give a like below.
0 Karma

thambisetty
Super Champion

is there any way to forward events based on db input stanza.?

I wanted to forward all db inputs which have same source type to third party and below is the configuration I have made on Heavy forwarder.

outputs.conf
[tcpout:thirdparty]
server = server1:9997,server2:9997

props.conf
[oracle:audit:db]
TRANSFORMS-routing=route_db_thirdparty

transforms.conf
[route_db_thirdparty]
REGEX=.*
DEST_KEY=_TCP_ROUTING
FORMAT=thirdparty

 

————————————
If this helps, give a like below.
0 Karma

bsanch2
Path Finder

I ended up using the method described in this link to route the data to a second indexer.
http://docs.splunk.com/Documentation/Splunk/6.6.3/Forwarding/Routeandfilterdatad

jawaharas
Motivator

@bsanch2

Thanks.

  1. Did you installed the 'Splunk DB Connect' app in Heavy Forwarder?
  2. Also, can you please share the exact configuration you used to route the data to the second indexer?
0 Karma
Get Updates on the Splunk Community!

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...

Getting Started with AIOps: Event Correlation Basics and Alert Storm Detection in ...

Getting Started with AIOps:Event Correlation Basics and Alert Storm Detection in Splunk IT Service ...

Register to Attend BSides SPL 2022 - It's all Happening October 18!

Join like-minded individuals for technical sessions on everything Splunk!  This is a community-led and run ...