All Apps and Add-ons

How can I get the Bro-events in my own index (and not in the index "bro")?

arthurbreuer
Path Finder

I am using the Splunk Add-on for Bro IDS to parse pcap files, get the metadata from them as bro logfiles and parse these logfiles into a Splunk index.

The problem I have is that I only can put the data in a dedicated index "bro". But I want to be able to put the data in my own index and not in this bro index.

I tried so things with no result. It is possible to name an index in the input.conf, but this only works for the sourcetype "pcap_monitor" and not for the sourcetypes "bro_*". I also tried to monitor the logfiles separately with an named index, but the data still ends in the bro index. I also changed the index.conf file in the apps directory, but this doesn't make any difference too.

In the documentation of the "All Bro events are stored in a dedicated index named bro." There is nothing on how to put data in another index. So it looks like it is not possible?

Any ideas?

0 Karma
1 Solution

arthurbreuer
Path Finder

I think I found the problem. The setting for the index was overruled by the "BroRouteIndex" setting in the file "default/transforms.conf". I commented it out and now the index property in the inputs.conf isn't ignored anymore. It looks like the data is going to the proper index now.

View solution in original post

cdupuis123
Path Finder

side question arthurbreuer

My bro sensors name the the log files conn.log, weird.log, http.log etc etc. I'm trying to use the new Splunk_TA_bro but in the props.conf on my indexer it seems to hate the fact that my bro log aren't named bro.whateverfile.log what are folks doing to work around this? I've set the source to [source::...*.log] then in the enrich bro logs area I've set the regex to this:
[(?::){0}.log]

[(?::){0}bro_*] original

then in my transforms I set the [BroAutoType] to:
REGEX = ([a-zA-Z]+).log

REGEX = (?:[a-zA-Z0-9]+.)?([a-zA-Z0-9]+).log original

I stood up a test bro sensor today to see if I could change the way bro writes it's logs but it didn't jump out at me.....

Thanks in advance

0 Karma

arthurbreuer
Path Finder

I think I found the problem. The setting for the index was overruled by the "BroRouteIndex" setting in the file "default/transforms.conf". I commented it out and now the index property in the inputs.conf isn't ignored anymore. It looks like the data is going to the proper index now.

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, ...