Getting Data In

How to configure a heavy forwarder to route some of the data to syslog+nullqueue, and rest to index?

sarit_s
Communicator

We are trying to configure a heavy forwarder to route some of the data to syslog+nullqueue, and index the rest of the data.

I tried to use props + transforms to route the desired regex to syslog+null queue.
Issue is, when events go to nullqueue, they do not go to syslog at all.
Is there any way to send to syslog while not indexing?

Here is what I configured in props.conf, transforms.conf:

Sourcetype: BES
Regex to route to syslog: *INFO
All the other events should be indexed.

props.conf
[BES]
TRANSFORMS-bes-syslog=send_to_syslog_bes,nullqueue_bes

transforms.conf
[nullqueue_bes]
REGEX = *INFO
DEST_KEY = queue
FORMAT = nullQueue

[send_to_syslog_bes]
REGEX = *INFO
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogforward_bes

outputs.conf
[tcpout]
defaultGroup = default-autolb-group

[tcpout-server://indexer01:9997]

[tcpout-server://indexer02:9997]

[tcpout:default-autolb-group]
disabled = false
server = indexer01:9997,indexer02:9997

[syslog:syslogforward_bes]
server = x.x.x.x:523
timestampformat = %Y-%m-%dT%H:%M:%S.%3N

0 Karma

jkat54
SplunkTrust
SplunkTrust

Youll want to use these in inputs.conf:

_SYSLOG_ROUTING = primarySyslogs
_TCP_ROUTING = somethingThatDoesntExistInOutputsConf

And then you'll have something like this in your outputs.conf:

[syslog]
defaultGroup=primarySyslogs

[syslog:primarySyslogs]
server = 10.1.1.197:514

https://answers.splunk.com/answers/54086/inputs-conf-syslog-routing-only.html

Your configuration may need to vary slightly. Perhaps you want specific events sent to syslog, others indexed, etc. I recommend that you read the docs very carefully and test before implementing in production if possible:

http://docs.splunk.com/Documentation/Splunk/6.2.0/Admin/Outputsconf
http://docs.splunk.com/Documentation/Splunk/6.2.0/Admin/Inputsconf

If you need to parse out specific events for syslog and index others,... you'll need to look into transforms.conf and props.conf as well

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...