Getting Data In

Is there a option to ingest application logs for only one applicaiton(process) on teh windows servers?

kiran331
Builder

Hi

Is there a option to ingest the logs of only one process from the windows servers ignoring rest of the events?

0 Karma

maheshj
Explorer

Hi Kiran,
Yes it's possible to do while ingesting the data.
Configure the event-level transformations on the indexer.

  • If an event contains the regex pattern (? pattern), then index the event to index1.
  • If an event contains the regex pattern (?! pattern), then do not index.

Note pattern will be your windows process

transforms.conf
[eventsRoute]
REGEX= (? pattern)
DEST_KEY = _MetaData:Index
FORMAT = <index1>

[eventsDrop]
REGEX = (?! pattern)
DEST_KEY = queue
FORMAT = nullQueue

props.conf
[Yoursourcetype]
TRANSFORMS-­‐neglect = eventsDrop
TRANSFORMS-­‐ingest = eventsRoute

Regards,
Mahesh

DalJeanis
Legend

... with the small note that the pattern for eventsDrop could be .*, to send EVERYTHING to the nullQueue unless it was later overridden by matching the pattern for eventsRoute.

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