Getting Data In

Splunk Datamodel Endpoint Processes.process_name: How do we fix the regex to only show process name?

SplunkUserD
Engager

We are having issues with our Splunk datamodel Endpoint Processes.process_name. The current value for Process.process_name is...

case(isnotnull(process) AND parent_process!="",replace(process,".*\\\\(.*)","\1"),1=1,"unknown")

The regex pulls correct and invalid results as follows...

Correct:

lsass.exe
NmService.exe
Microsoft.IdentityServer.ServiceHost.exe

Incorrect:

AppxData.csv"
BackgroundTaskHost.exe" -ServerName:BackgroundTaskHost.WebAccountProvider
RuntimeBroker.exe -Embedding

The correct results show the actual process name while the incorrect ones may not show the process name or shows the process name with an extra quotation mark or command line arguments.

How do we fix the regex to only show process name?

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Customer Experience | Splunk 2024: New Onboarding Resources

In 2023, we were routinely reminded that the digital world is ever-evolving and susceptible to new ...

Celebrate CX Day with Splunk: Take our interactive quiz, join our LinkedIn Live ...

Today and every day, Splunk celebrates the importance of customer experience throughout our product, ...

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...