Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How do I fix my host_regex in order to extract the hostname from my log file?

$
0
0
Hello all I am extremely terrible with regex and frankly I am stumped. I am trying to get hostname from the log file that is generated in the path. /var/log2/collab/bitdefender/ies-av-web-01.log /var/log2/colab/bitdefender/wv-av-web-01.log I used the following thinking it would work [monitor:///var/log2/collab/bitdefender/*.log] host_regex = [^.log] But it didn't and the examples from other questions people are specifying the entire path in the host_regex, which from what I read isn't necessary since it should be reading the entire path from the monitor stanza. thanks in advance

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>