i have configured ELK effectively on AWS linux. however, i am not able to get logstash-forwarder working and getting below error while starting the logstash-forwarder service on client servers which are Amazon linux.
“/etc/init.d/logstash-forwarder: line 25: /lib/init/vars.sh: No such file or directory”
can anyone help me on this.
also suggest how i can check and confirm the functioning of my ELK server.
Thanks in advance.
Shail
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
I wrote this init script for RedHat/CentOS:
https://gist.github.com/jarpy/df2c4943e70f88b6076a There’s also a bunch of example init scripts, for various distributions, taken from James Turnbull’s excellent Logstash book:
http://www.logstashbook.com/code/4/
Note that the init script was removed from the logstash-forwarder Github repo in February. This link is to the last version of the init script
https://raw.githubusercontent.com/elastic/logstash-forwarder/a73e1cb7e43c6de97050912b5bb35910c0f8d0da/logstash-forwarder.init
Without knowing more about how you installed logstash-forwarder, it’s hard to give a good answer to your question. You can grab and install the init script in the GitHub repo using:
This assumes your logstash-forwarder binary is installed to
/opt/logstash-forwarder/bin/logstash-forwarder
Edit theDAEMON
variable as needed if that’s not the case.Checkout this tutorial for all the information on setting up an ELK server on Ubuntu: