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

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

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

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...