Hi all -
I'm struggling to extract the hostname from a Dhcp request from my logs:
Mar 4 15:30:40 192.168.1.1 Mar 4 15:30:40 SecurityGateway dhcpd: execute_statement argv[2] = Nest-C256.Ourhouse
What I'm after is a count of the different hosts, I think its fair to assume they will contain Uppercase/Lowercase/Numbers and or : and .
I've tried all sorts and I can't extract Nest-C256.Ourhouse from the case above, I've tried the following with no result:
Base Search .... | rex "argv[2]s=\s(?.[a-z A-Z,-,.]+)"
What I'd like is a table with a count against each hostname
... View more