How do I get application name from path in grok/ regex?
Example path:
C:\Temp\Logs\MyMainApp.SubApp.App.exe.010519.201123.9320.log
Expected Output:
MyMainApp.SubApp.App
Note:
- App name always ends in .exe
- Path may have more or less depth in terms of directories
Test:
^(.+?)/([\w]+\.exe)$
with C:\Temp\Logs\MyMainApp.SubApp.App.exe.010519.201123.9320.log
Also tried several options from similar post