Hello Everyone,
In my architecture, I am using 3 elastic components such as:-
- Filebeat
- Elasticsearch
- Kibana
filebeat.yml configuration file is :-
#=========================== Filebeat inputs =============================
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/nandan.log
#============================= Filebeat modules ===============================
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
hosts: ["172.16.101.107:9200"]
and my input file "nandan.log" data getting an index into Elasticsearch successfully. But the problem is
whenever I am inserting new data inside "nandan.log" file, Elasticsearch is getting an index of all new data as well as old data every time.
Right now in "nandan.log" file, there are 100-150 lines but in elasticsearch index,, there are 750 hits showing.
Please tell me how to resolve this.
Thanks