Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16046

incorrect field name for real-time export.

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.4 (plan)
    • None
    • Documentation (D)
    • None
    • Zabbix4.0.5
    • Sprint 51 (Apr 2019)

      It is logeventid in the manual, but it was actually eventid.


      procedure
      1)create item

      2)Modification of zabbix_server.conf

      ### Option: ExportDir
      #       Directory for real time export of events, history and trends in newline delimited JSON format.
      #       If set, enables real time export.
      #
      # Mandatory: no
      # Default:
      # ExportDir=
      ExportDir=/tmp
      

      3)create log file

      ]# cat /var/log/zabbix/test.log 
      test4
      test41
      

      4)Restart Zabbix Server


      ]# ls -l /tmp
      合計 32
      -rw-rw-r-- 1 zabbix zabbix  6138  4月 27 12:54 history-history-syncer-1.ndjson
      -rw-rw-r-- 1 zabbix zabbix 11894  4月 27 12:52 history-history-syncer-2.ndjson
      -rw-rw-r-- 1 zabbix zabbix  3966  4月 27 12:51 history-history-syncer-3.ndjson
      -rw-rw-r-- 1 zabbix zabbix  2428  4月 27 12:51 history-history-syncer-4.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 history-main-process-0.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 problems-history-syncer-1.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 problems-history-syncer-2.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 problems-history-syncer-3.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 problems-history-syncer-4.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 problems-main-process-0.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 problems-task-manager-1.ndjson
      drwx------ 3 root   root      16  4月 24 14:32 systemd-private-30e47c1c30cd4ba79773015af37d0880-httpd.service-7EwLOY
      drwx------ 3 root   root      16  4月  2 14:22 systemd-private-30e47c1c30cd4ba79773015af37d0880-mariadb.service-sB32Ha
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 trends-history-syncer-1.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 trends-history-syncer-2.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 trends-history-syncer-3.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 trends-history-syncer-4.ndjson
      -rw-rw-r-- 1 zabbix zabbix     0  4月 27 12:50 trends-main-process-0.ndjson
      -rw------- 1 root   root    1969  4月 24 14:54 yum_save_tx.2019-04-24.14-54.S039KH.yumtx
      
      ]# cat /tmp/history-history-syncer-*|grep log|grep logtest
      {"host":"Zabbix server","groups":["Zabbix servers"],"applications":[],"itemid":28623,"name":"logtest","clock":1556337257,"ns":59854552,"timestamp":0,"source":"","severity":0,"eventid":0,"value":"test4"}
      {"host":"Zabbix server","groups":["Zabbix servers"],"applications":[],"itemid":28623,"name":"logtest","clock":1556337257,"ns":59856580,"timestamp":0,"source":"","severity":0,"eventid":0,"value":"test41"}
      

      It was output with the name eventid instead of logeventid.

        1. item01.png
          item01.png
          49 kB
        2. manual01.png
          manual01.png
          115 kB
        3. manual02.png
          manual02.png
          20 kB

            vso Vladislavs Sokurenko
            kazuo.ito Kazuo Ito
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: