Splunk Enterprise

How to whitelist specific TaskName in inputs.conf in Splunk forwarder to be pulled?

splunker-2021
Loves-to-Learn Everything

How will I whitelist specific TaskName in inputs.conf in Splunk forwarder configuration from WinEventLog Task Scheduler/Operational .

Pulled data Example:

....<Data Name='TaskName'>\Job 1</Data>.....

....<Data Name='TaskName'>\Job 2</Data>.....

....<Data Name='TaskName'>\Other 1</Data>.....

I only need to pull data of Job 1 and Job 2. How can I filter multiple jobs in inputs.conf

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk supports whitelisting based on a fixed set of keywords.  "Data Name" is not one of them, but Message is.  If the TaskName is part of the Message text then perhaps this whitelist will help.

whitelist1 = Message=:"TaskName'\>\\Job [12]\<:
---
If this reply helps you, Karma would be appreciated.
0 Karma

vin_ven27
Explorer

I believe @richgalloway that the Task name is not under a Message keyword accepted by the whitelisting. With this, do we have any work around? or once the keyword is not:

Category, CategoryString, ComputerName, EventCode, EventType, Keywords,
    LogName, Message, OpCode, RecordNumber, Sid, SidType, SourceName,
    TaskCategory, Type, User

meaning it will not work at all?  

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If the keyword is not in that list then it cannot be used in a whitelist or blacklist.

---
If this reply helps you, Karma would be appreciated.
0 Karma

splunker-2021
Loves-to-Learn Everything

Hi, I appreciate your help, but it still not working on my end 😞 I have tried the code but no result in pulling data.

This is the inputs.conf

[WinEventLog://Microsoft-Windows-TaskScheduler/Operational]
disabled = 0
start_from = oldest
current_only = 1
checkpointInterval = 5
renderXml = true
whitelist1 = Message=:'TaskName'\>\\Service Process\\<:
index = winevents_index
0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...