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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...