Hello
I am very new in zabbix and I am making some test with zabbix trying to parse log messages from a server. I need extract from a log file some patther, i.e. ip address and respond time, there it is and example:
t=2020-04-20T13:45:45+0200 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/login status=302 remote_addr=192.168.175.102 time_ms=90 size=24 referer=
how can I extract remote_addr and time_ms and be able to view this values in a graph? I am able to send the log to the zabbiz server, but i only can extract one value with regexp:
but i have to process the log two times....is it possible obtain them processing log file only one time?
Best regard
laredoeneko
I am very new in zabbix and I am making some test with zabbix trying to parse log messages from a server. I need extract from a log file some patther, i.e. ip address and respond time, there it is and example:
t=2020-04-20T13:45:45+0200 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/login status=302 remote_addr=192.168.175.102 time_ms=90 size=24 referer=
how can I extract remote_addr and time_ms and be able to view this values in a graph? I am able to send the log to the zabbiz server, but i only can extract one value with regexp:
| 2020-04-20 14:47:00 | t=2020-04-20T13:46:59+0200 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/login status=302 remote_addr=192.168.175.102 time_ms=90 size=24 referer= |
| 2020-04-20 14:47:00 | 192.168.175.102 90 |
Best regard
laredoeneko
Comment