Getting Data In

How do I index only my application data from windows event logs?

madhufuture
New Member

Hi,

I have an application ABC. From application ABC , I'm writing my logs to Windows Application Event logs. I want to index only my ABC application logs, not complete my windows event logs.

Could you please help me figure out how I can index specific application event logs?

0 Karma
1 Solution

HiroshiSatoh
Champion

You can filter by setting a unique event ID in the application log.

inputs.conf: whitelist
Whether to index events that match the specified text string. This attribute is optional.
You can specify one of two formats:

One or more Event Log event codes or event IDs (Event Code/ID format.)
One or more sets of keys and regular expressions (Advanced filtering format.)

View solution in original post

0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

hi @madhufuture,

Did either of the answers below solve your problem? If so, please resolve this post by approving one of them.
If your problem is still not solved, keep us updated so that someone else can help ya.

Thanks for posting!

0 Karma

DalJeanis
SplunkTrust
SplunkTrust

Basically, when you are writing out your application logs, you need to mark them in some way so that they can be easily identified.

Then, you blacklist all incoming events, and whitelist only those that match your application logs.

0 Karma

HiroshiSatoh
Champion

You can filter by setting a unique event ID in the application log.

inputs.conf: whitelist
Whether to index events that match the specified text string. This attribute is optional.
You can specify one of two formats:

One or more Event Log event codes or event IDs (Event Code/ID format.)
One or more sets of keys and regular expressions (Advanced filtering format.)

0 Karma

madhufuture
New Member

Perfect!! Thanks for your help

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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