Getting Data In

How to filter out the first 2 lines of an event?

shan_santosh
Explorer

I have a VB script to get Local users from Admin group. The event data from this script by default adds the below 2 lines to the event.

Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

How to get rid of these unwanted lines?

0 Karma

somesoni2
Revered Legend

If you own the script, update the same to remove these unwanted lines from the output.

If that's not possible, you can use event filtering method to drop those lines from indexing

http://docs.splunk.com/Documentation/Splunk/6.4.3/Forwarding/Routeandfilterdatad#Filter_and_route_ev...
https://answers.splunk.com/answers/37423/how-to-configure-a-forwarder-to-filter-and-send-the-specifi...

0 Karma

sundareshr
Legend
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...