Getting Data In

How to filter out audit id field from Brightmail logs in Splunk?

Explorer

Hi Splunkers:

I have an issue filtering out a field called Audit ID. Each email is assigned this number as it passes thru a mail exchange, so the conventional wisdom would be that if I search on one Audit ID, but we are getting several audit id results from other event records.

I have created transforms to deal with various event records containing mailing activity such as mail delivery, accept, order, sender, subject, trackerid, verdict etc. I want this audit id field to be only indexed by Splunk for verdict ID and ignore all other event records.

This audit id field exists on the other event records pertaining to mail delivery, accept, order, sender, subject, trackerid etc. How do I filter this field in Splunk so that it only shows this field 'audit_id' from 'verdict' event records and not others.

Thanks

Mohammed

0 Karma

Revered Legend

Try this

props.conf on your Indexer/Heavy forwarder

[yoursourcetype]
SEDCMD-maskAuditId = s/^([^\|]+\|)([^\|]+\|)([^\|]+\|)([^\|]+)$/\1XX-X-XXXX-X-XX\3\4/g
0 Karma

Legend

Try this in your props.conf

SEDCMD-hideauditid = s/(\w+-\w+-\w{2}-\w+)\|(?!VERDICT)/xxx-xxx-x-xxx|/g

http://docs.splunk.com/Documentation/Splunk/6.1.9/Data/Anonymizedatausingconfigurationfiles

0 Karma

Explorer

I want to filter out only the audit_id from the below logs (audit_id) :

Aug 2 07:24:12 ecelerity[port_no]: |****|ACCEPT|

I want to keep all the event records below as is appearing in Splunk:

Aug 2 07:26:14 bmserver[port_no]: |****|VERDICT||none|default|default

0 Karma

Revered Legend

You want to filter the whole events which has that kind of structure shown by event 1 OR just want to mask the audit_id for the events?

0 Karma

Explorer

I just want to mask out the audit_id for the events for the first data type:

Aug 2 07:24:12 gk-c84-email ecelerity[2648]: 1470140652|38008f54-df7ff70000000a58-a3-57a090ec9bad|ACCEPT|56.0.143.4:41611

0 Karma

Revered Legend

Can you post the actual raw events that want to ingest and that you don't want to ingest?
Highlight the match terms as well.

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!