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

Error "elasticsearch version is not compatible with zabbix server"

    XMLWordPrintable

Details

    • Incident report
    • Status: Confirmed
    • Minor
    • Resolution: Unresolved
    • 5.0.3, 5.0.5
    • None
    • Server (S)
    • None
    • Ubuntu 18.04.4
      zabbix-server-pgsql 5.0.3
      elasticsearch 7.8.0
      zabbix-server-mysql 5.0.5

    Description

      I got an error when trying to save historical Zabbix data in Elasticsearch: "elasticsearch version is not compatible with zabbix server". 

      Which version of elasticsearch are supported?

      • /etc/zabbix/zabbix_server.conf:
        #Elasticsearch
        HistoryStorageURL=http://elastic_fqdn:9200
        HistoryStorageTypes=uint,dbl,str,log,text
        HistoryStorageDateIndex=1
      • Elasticsearch:
        • dbl_template:
          {
            "version": 1,
            "order": 0,
            "index_patterns": [
              "dbl*"
            ],
            "settings": {
              "index": {
                "lifecycle": {
                  "name": "zabbix_ilm"
                },
                "number_of_shards": "3",
                "number_of_replicas": "1"
              }
            },
            "aliases": {},
            "mappings": {
              "_doc": {
                "_routing": {
                  "required": false
                },
                "_meta": {},
                "_source": {
                  "excludes": [],
                  "includes": [],
                  "enabled": true
                },
                "dynamic": false,
                "dynamic_templates": [],
                "properties": {
                  "itemid": {
                    "type": "long"
                  },
                  "clock": {
                    "format": "epoch_second",
                    "type": "date"
                  },
                  "value": {
                    "coerce": true,
                    "index": true,
                    "ignore_malformed": false,
                    "store": false,
                    "type": "double",
                    "doc_values": true
                  }
                }
              }
            }
          }
          
        • log_template
          {
            "version": 1,
            "order": 0,
            "index_patterns": [
              "log*"
            ],
            "settings": {
              "index": {
                "lifecycle": {
                  "name": "zabbix_ilm"
                },
                "number_of_shards": "3",
                "number_of_replicas": "1"
              }
            },
            "aliases": {},
            "mappings": {
              "_doc": {
                "_routing": {
                  "required": false
                },
                "_meta": {},
                "_source": {
                  "excludes": [],
                  "includes": [],
                  "enabled": true
                },
                "dynamic": false,
                "dynamic_templates": [],
                "properties": {
                  "itemid": {
                    "type": "long"
                  },
                  "clock": {
                    "format": "epoch_second",
                    "type": "date"
                  }
                }
              }
            }
          }
          
        • str_template
          {
            "version": 1,
            "order": 0,
            "index_patterns": [
              "str*"
            ],
            "settings": {
              "index": {
                "lifecycle": {
                  "name": "zabbix_ilm"
                },
                "number_of_shards": "3",
                "number_of_replicas": "1"
              }
            },
            "aliases": {},
            "mappings": {
              "_doc": {
                "_routing": {
                  "required": false
                },
                "_meta": {},
                "_source": {
                  "excludes": [],
                  "includes": [],
                  "enabled": true
                },
                "dynamic": false,
                "dynamic_templates": [],
                "properties": {
                  "itemid": {
                    "type": "long"
                  },
                  "clock": {
                    "format": "epoch_second",
                    "type": "date"
                  },
                  "value": {
                    "index": false,
                    "type": "text",
                    "fields": {
                      "analyzed": {
                        "analyzer": "standard",
                        "index": true,
                        "type": "text"
                      }
                    }
                  }
                }
              }
            }
          }
          
        • text_template
          {
            "version": 1,
            "order": 0,
            "index_patterns": [
              "text*"
            ],
            "settings": {
              "index": {
                "lifecycle": {
                  "name": "zabbix_ilm"
                },
                "number_of_shards": "3",
                "number_of_replicas": "1"
              }
            },
            "aliases": {},
            "mappings": {
              "_doc": {
                "_routing": {
                  "required": false
                },
                "_meta": {},
                "_source": {
                  "excludes": [],
                  "includes": [],
                  "enabled": true
                },
                "dynamic": false,
                "dynamic_templates": [],
                "properties": {
                  "itemid": {
                    "type": "long"
                  },
                  "clock": {
                    "format": "epoch_second",
                    "type": "date"
                  },
                  "value": {
                    "index": false,
                    "type": "text",
                    "fields": {
                      "analyzed": {
                        "analyzer": "standard",
                        "index": true,
                        "type": "text"
                      }
                    }
                  }
                }
              }
            }
          }
          
        • uint_template
          {
            "order": 0,
            "index_patterns": [
              "uint*"
            ],
            "settings": {
              "index": {
                "lifecycle": {
                  "name": "zabbix_ilm"
                },
                "number_of_shards": "3",
                "number_of_replicas": "1"
              }
            },
            "aliases": {},
            "mappings": {
              "_doc": {
                "_source": {
                  "excludes": [],
                  "includes": [],
                  "enabled": true
                },
                "_meta": {},
                "_routing": {
                  "required": false
                },
                "dynamic": false,
                "dynamic_templates": [],
                "properties": {
                  "clock": {
                    "format": "epoch_second",
                    "type": "date"
                  },
                  "itemid": {
                    "type": "long"
                  },
                  "value": {
                    "type": "long",
                    "index": true,
                    "ignore_malformed": false,
                    "coerce": true,
                    "doc_values": true,
                    "store": false
                  }
                }
              }
            }
          }
          

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            msolonitsin Misha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: