zabbix use elasticsearch storage ,multiple date-based indices bug

XMLWordPrintable

    • Type: Problem report
    • Resolution: Incomplete
    • Priority: Trivial
    • None
    • Affects Version/s: 4.0.14
    • Component/s: Server (S)
    • None

      We are going to use the 4.0.14 version of zabbix and found a problem during deployment. Is to use elasticsearch as storage, use time to index creation, zabbix server can not write data, will report an error
      Template and pipeline have been created according to official documentation

      error log:
      117950:20191112:202612.647 In DBupdate_itservices()
      117950:20191112:202612.647 End of DBupdate_itservices():SUCCEED
      117950:20191112:202612.647 End of zbx_sync_history_cache()
      117950:20191112:202612.648 __zbx_zbx_setproctitle() title:'history syncer #4 [processed 2 values, 0 triggers in 20.017650 sec, idle 1 sec]'
      117947:20191112:202617.533 elastic_is_error_present() raw json: {"took":0,"ingest_took":0,"errors":true,"items":[{"index":{"_index":"uint"," _type":"values","_id":null,"status":500,"error":{"type":"exception","reason":"java.lang.Illeg
      alArgumentException: java.lang.IllegalArgumentException: field [clock] of type [java.lang.Integer] cannot be cast to [java.lang.String]","caused_by":{"type":"illegal_argument_exception","reason" :"java.lang.IllegalArgumentException: f
      Ield [clock] of type [java.lang.Integer] cannot be cast to [java.lang.String]","caused_by":{"type":"illegal_argument_exception","reason":"field [clock] of type [java.lang.Integer] cannot be cast to [java.lang.String]"}},"header":{"pr
      Ocessor_type":"date_index_name"}}}}]}{"took":0,"ingest_took":0,"errors":true,"items":[{"index":{"_index":"uint", "_type":"values","_id":null,"status":500,"error":{"type":"exception","reason":"java.lang.IllegalArgumentException: java.l
      ang.IllegalArgumentException: field [clock] of type [java.lang.Integer] cannot be cast to [java.lang.String]","caused_by":{"type":"illegal_argument_exception","reason":"java. lang.IllegalArgumentException: field [clock] of type [java.
      lang.Integer] cannot be cast to [java.lang.String]","caused_by":{"type":"illegal_argument_exception","reason":"field [clock] of type [java.lang.Integer] cannot be Cast to [java.lang.String]"}},"header":{"processor_type":"date_index_n
      Ame"}}}}]}
      117947:20191112:202617.533 End of elastic_writer_flush()
      117947:20191112:202617.533 End of zbx_history_add_values()
      117947:20191112:202617.533 End of DBmass_add_history()
      117947:20191112:202617.533 In DCmass_update_trends()

            Assignee:
            Renats Valiahmetovs (Inactive)
            Reporter:
            taoyantu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: