Skip to content

Commit

Permalink
elasticsearch: require 7.4 or newer
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed May 22, 2020
1 parent b717d2a commit 08281cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -14,7 +14,7 @@
### Breaking Changes
- Remove adding of Suricata rules to events on import. Suricata can
now be configured to include the rule in an alert.
- Remove support for Elasticsearch versions less than 7.7 due to the
- Remove support for Elasticsearch versions less than 7.4 due to the
upcoming doc type removal in 8.

## 0.11.0 - 2020-03-26
Expand Down
4 changes: 2 additions & 2 deletions cmd/esimport/esimport.go
Expand Up @@ -326,8 +326,8 @@ func Main(args []string) {
log.Info("Connected to Elastic Search v%s (cluster:%s; name: %s)",
response.Version.Number, response.ClusterName, response.Name)
major, minor := response.ParseVersion()
if major < 7 || (major == 7 && minor < 7){
log.Fatalf("Elastic Search versions less than 7.7 are not supported.")
if major < 7 || (major == 7 && minor < 4){
log.Fatalf("Elastic Search versions less than 7.4 are not supported.")
}

bookmarkDirectory := viper.GetString("bookmark-dir")
Expand Down

0 comments on commit 08281cf

Please sign in to comment.