Skip to content

Commit

Permalink
redesigned elastic index structure
Browse files Browse the repository at this point in the history
  • Loading branch information
canaykin committed May 29, 2024
1 parent b6f9ba6 commit ef17242
Showing 1 changed file with 12 additions and 40 deletions.
52 changes: 12 additions & 40 deletions charts/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,37 +170,7 @@ filebeat:
hosts: '["${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}"]'
protocol: http
indices:
- index: "traefik-and-keycloak-proxy-%{[agent.version]}-%{+yyyy.MM}"
when:
or:
- equals:
kubernetes.namespace: "routing"
- index: "vault-%{[agent.version]}-%{+yyyy.MM}"
when:
and:
- equals:
kubernetes.namespace: "vault"
- index: "argocd-%{[agent.version]}-%{+yyyy.MM.DD}"
when:
or:
- equals:
kubernetes.namespace: "argocd"
- index: "elastalert-%{[agent.version]}-%{+yyyy.MM.DD}"
when:
or:
- equals:
kubernetes.container.name: "elastalert2"
- index: "kyverno-%{[agent.version]}-%{+yyyy.MM.DD}"
when:
or:
- equals:
kubernetes.namespace: "kyverno"
- index: "auth-%{[agent.version]}-%{+yyyy.MM.DD}"
when:
or:
- equals:
kubernetes.namespace: "auth"
- index: "not-defined-%{[agent.version]}-%{+yyyy.MM}"
- index: "%{[kubernetes.namespace]:not-defined}-%{[agent.version]}-%{+yyyy.MM}"
setup.kibana:
host: "elasticsearch-kibana:5601"
protocol: "http"
Expand Down Expand Up @@ -252,20 +222,22 @@ indexPatternInit:
repository: docker.io/curlimages/curl
tag: 7.82.0
indices:
botkube:
timestampField: "Timestamp"
traefik-and-keycloak-proxy:
timestampField: "@timestamp"
vault:
admin:
timestampField: "@timestamp"
argocd:
timestampField: "@timestamp"
auth:
timestampField: "@timestamp"
elastalert:
cert-manager:
timestampField: "@timestamp"
kyverno:
timestampField: "@timestamp"
monitoring:
timestampField: "@timestamp"
routing:
timestampField: "@timestamp"
vault:
timestampField: "@timestamp"
not-defined:
timestampField: "@timestamp"

Expand All @@ -276,15 +248,15 @@ ilm:
policies:
long:
#business apps and security relevant logs
indexPatterns: [ "vault*" ]
indexPatterns: [ "auth*", "vault*" ]
coldAfter: 32d
deleteAfter: 365d
medium:
indexPatterns: [ "not-defined*", "traefik-and-keycloak-proxy*", "auth*" ]
indexPatterns: [ "cert-manager*", "routing*", "not-defined*" ]
coldAfter: 32d
deleteAfter: 90d
short:
indexPatterns: [ "elastalert*", "argocd*", "kyverno*" ]
indexPatterns: [ "admin*", "argocd*", "kyverno*", "monitoring*" ]
coldAfter: 2d
deleteAfter: 14d

Expand Down

0 comments on commit ef17242

Please sign in to comment.