Getting Data In

host_regex syntax for SMB share?

the_wolverine
Champion

I need a syntax example for host_regex to pull the hostname out of a share like the following:

[monitor://\\norcal_server\c$\Windows\System32\LogFiles]
0 Karma

kristian_kolb
Ultra Champion

Since the messageboard seems to be rather moody today, I'm having trouble writing HTML-specific characters at the moment, like < or >, so here goes.

\[monitor\:\/+\\+(?< HOST >[^\\]+)\\

You'd have to remove the spaces surrounding HOST..

or perhaps, even simpler

\\{2}(?< host >[^\\]+)\\

Hope this helps,

Kristian

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...