Last active
May 20, 2020 09:42
-
-
Save Nurlan199206/739593dc6f0c7826230f458462bc1c06 to your computer and use it in GitHub Desktop.
Custom index name Filebeat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=================Filebeat===7.6.2=======/etc/filebeat/filebeat.yml=========================== | |
filebeat.inputs: | |
- type: log | |
enabled: true | |
paths: | |
- /opt/IBM/WebSphere/AppServer/V85/ND/profiles/AppSrv01/logs/Member1/SystemOut.log | |
filebeat.config.modules: | |
path: ${path.config}/modules.d/*.yml | |
reload.enabled: false | |
setup.template.settings: | |
index.number_of_shards: 1 | |
index.codec: best_compression | |
setup.template.name: "ecm-test" | |
setup.template.pattern: "ecm-test-*" | |
setup.ilm.enabled: false | |
#-------------------------- Elasticsearch output ------------------------------ | |
output.elasticsearch: | |
# Array of hosts to connect to. | |
hosts: ["host1:9200", "host2:9200", "host3:9200"] | |
# Protocol - either `http` (default) or `https`. | |
protocol: "http" | |
index: "ecm-test-%{+yyyy.MM.dd}" | |
username: "elastic" | |
password: "yourpassword" | |
=====================================Kibana=======query================================================= | |
#For auto create index use this query in Kibana | |
#More information here: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html | |
PUT _cluster/settings | |
{ | |
"persistent": { | |
"action.auto_create_index": "filebeat-7.5.0-*,logstash-*,ecm-test-*,bpm-prod-*" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment