Getting Data In

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

mohammed7860
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

somesoni2
SplunkTrust
SplunkTrust

Try this

props.conf on your Indexer/Heavy forwarder

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

sundareshr
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

mohammed7860
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

somesoni2
SplunkTrust
SplunkTrust

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

mohammed7860
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

somesoni2
SplunkTrust
SplunkTrust

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
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...