Getting Data In

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


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...




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!

Dashboard Studio Challenge - Learn New Tricks, Showcase Your Skills, and Win Prizes!

Reimagine what you can do with your dashboards. Dashboard Studio is Splunk’s newest dashboard builder to ...

Introducing Edge Processor: Next Gen Data Transformation

We get it - not only can it take a lot of time, money and resources to get data into Splunk, but it also takes ...

Take the 2021 Splunk Career Survey for $50 in Amazon Cash

Help us learn about how Splunk has impacted your career by taking the 2021 Splunk Career Survey. Last year’s ...