Hi,
I would like to calculate hits on an access log but also match part of the log via regular expression.
I am trying to calculate the following however it's giving me an error:
log.count[/var/log/apache2-www-example/www.example.com-access.log,"/*/user/signin",,,,]
I managed to create the following item however here I'm not matching any syntax:
(last("HOSTNAME:apache2.log.count[/var/log/apache2-example/example.com-access.log]") + last("HOSTNAME:apache2.log.count[/var/log/apache2-example/example.com-access.log]"))
My question is, how can I create an item where I calculate log.count for two servers and also match syntax via regular expression?
Thanks in advance.
Kind Regards,
Tyr-ML
I would like to calculate hits on an access log but also match part of the log via regular expression.
I am trying to calculate the following however it's giving me an error:
log.count[/var/log/apache2-www-example/www.example.com-access.log,"/*/user/signin",,,,]
I managed to create the following item however here I'm not matching any syntax:
(last("HOSTNAME:apache2.log.count[/var/log/apache2-example/example.com-access.log]") + last("HOSTNAME:apache2.log.count[/var/log/apache2-example/example.com-access.log]"))
My question is, how can I create an item where I calculate log.count for two servers and also match syntax via regular expression?
Thanks in advance.
Kind Regards,
Tyr-ML