Ad Widget

Collapse

[zabbix agent2] for k8s: cannot send container logs to zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yating Duan
    Junior Member
    • Nov 2022
    • 1

    #1

    [zabbix agent2] for k8s: cannot send container logs to zabbix server

    Hi Dears,
    I had deployed zabbix agent 2 on my kubernetes cluster, and mount node container logs to /var/log. I can see the pod logs using command

    [tail -f /var/log/pods/kafka-zk_kafka-zk-zookeeper-2_a922e7df-2f45-44d1-b882-04e68c2190ae/zookeeper/0.log]

    I want send this errors to my zabbix server by below configuration:
    ====>
    type: zabbix agent<active>
    key: log[/var/log/pods/kafka-zk_kafka-zk-zookeeper-2_a922e7df-2f45-44d1-b882-04e68c2190ae/zookeeper/0.log]
    ====>
    unfortunately, I cannot see any logs from latest data.

    what I missed, could anybody help me ?

    Thanks a lot
    BR
Working...