[ZBX-16906] zabbix use elasticsearch storage ,multiple date-based indices bug Created: 2019 Nov 13  Updated: 2020 Jun 15  Resolved: 2020 Jun 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.0.14
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: taoyantu Assignee: Renats Valiahmetovs (Inactive)
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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()



 Comments   
Comment by Kaspars Mednis [ 2019 Nov 15 ]

Hello,

What is the version of Elasticsearch DB engine used ?

Generated at Sun May 31 19:45:27 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.