when first start metricbeat system
the lifecycle policy is made automatically
i want to know how to make lifecycle policy in my setting not just automatically
when first start metricbeat system
the lifecycle policy is made automatically
i want to know how to make lifecycle policy in my setting not just automatically
Hi @Min_Mah
You got several options.
That what you have now is a Index life cycle management which gets configured and created with all what you need by metricbeat. It is possible to modify the created Lifecycle in Kibana. manage created lifecycle
The full setup of ILM including lifecycle policies which has been done by metricbeat, can olso be done manually. That is under elasticsearch find create ilm
You can also let metricbeat setup everything the index lifecycle management, but define your own policy under a file: json file for policy
Let me know if this helped you =)
can i ask something more??
Yeah sure =)
Thanks,
i just change metricbeat index like this
and now i have to setup dashboards to kibana
so i type
metricbeat setup
but dashboards follow default index
automatically make new index but it is default index name not mine.
so i think i have to change more in metricbeat.yml
so i tried this
but.. it doesn't work for me
which point i have to change??
Please try to paste config parts as string and not as image. It is easier for readers to copy parts out of it and find it via browser search =)
If you go on a dashboard, are they pointing to the indexpattern which you have set with setup.dashboards.index
?
Did you create the "systeminfo-*" index pattern in Kibana ? I think you have to set the id same as the indexpattern name.
Thank you for answering both questions.
Thanks for reply.
in my metricbeat.yml only i was edit
#============================== Kibana =====================================
setup.kibana:host: "192.168.0.88:5601"
setup.dashboards.index: "systeminfo-*"#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
hosts: ["192.168.0.88:9200"]setup.ilm.enabled: auto
setup.ilm.rollover_alias: "systeminfo"
setup.ilm.pattern: "000001"
setup.ilm.policy_name: "SystemInfo"
yes i was create systeminfo-* in kibana index pattern
I think the dashboard is not working?
Can you send me a printscrren of the error shown on dashbaord ?
Okey!!
Info -1. i have only 1 index
this is dashboard screen
Ok you got actually 2 errors.
Your visualisations are also pointing to the old index. did you try deleting all visualisations and dashboards from metricbeat and runnning the metricbeat setup --dashboards
? because the setting setup.dashboards.index
should be enough to point to the correct index-pattern
Then check if the index is pointed correctly. You would have need to create a new index-pattern in kibana which is pointing to systembeat-* with systembeat-* as id. You can provide a custom id during the index-pattern creation.
The other error which you have seems to be a permission error. If you still have that error then try this discuss matter
Hope this helps
I was delete all visualization and dashboards
then metricbeat setup --dashboards but it doesnt' work..
Thanks for helps
can you provide the .yml file?
(only not commented lines)
only not commented thing is just this
#========================== Modules configuration ============================
metricbeat.config.modules:
path: ${path.config}/modules.d/*.ymlreload.enabled: false
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression#================================ Processors =====================================
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
hmmmm, where is the setting setup.dashboards.index
?
I tried it with filebeat with the following yml file and it works for me:
#=========================== Filebeat inputs =============================
filebeat.inputs:
type: log
enabled: true
paths:
/var/log/*.log#============================= Filebeat modules ===============================
filebeat.config.modules:
path: ${path.config}/modules.d/.yml
reload.enabled: false
#============================== Kibana =====================================
setup.kibana.host: "localhost:5601"
setup.dashboards.index: "testbeat-"
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
hosts: ["localhost:9200"]#================================ Processors =====================================
processors:
add_host_metadata: ~
add_cloud_metadata: ~
setup.dashboards.index is here in metricbeat.yml
#============================== Kibana =====================================
setup.kibana:
host: "192.168.0.88:5601"setup.dashboards.index: "systeminfo-*"
Try running from the following command from metricbeat server.
sudo metricbeat setup --dashboards -E 'setup.dashboards.index="systeminfo-*"'
wow... it works!!!!
you are so great!!
visualize follow index id : systeminfo-*
just 1 error.
kibana index is also make
as you can see that metricbeat-* index pattern is made by setup command but that index pattern can't follow anything..
Nice =)
Dashboards working as well ?
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.