I have installed Elastic search and Kibana on Fedora 27 and got them to work. But I would like to do network monitoring with packetbeat. When I follow the rpm install instructions as per : https://www.elastic.co/guide/en/beats/packetbeat/current/packetbeat-installation.html
The bin file gets installed under /etc/packetbeat but the packetbeat.yml file under /home/user/packetbeat.
then I was unable to run ./packetbeat to import index or set up dashboards. as they weren't in the same dir.
So I downloaded the linux tar file extracted that to a dir in the /home/usr and hey presto the .yml and bin files were in the same dir so I could run a few commands. But now I can't import index nor the dashboard. Yes I have x-pack installed and yes I have set the usernames and password in the yml accordingly?
That was done on a clean install on Fedora 27 so no upgrade just the version as per install instructions from: curl -L -O https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-6.1.1-amd64.deb so it would be version 6.1.1. I have now formatted the hard drive that it was installed on but later today I will be installing Ubuntu desktop and then try again and see if the .yml file is in the same dir as bin.
Can you please explain a bit more as to how to get the debug log files? ./packetbeat -e -v -d '*'. Would this then print the log to the terminal?
That's correct. The binary and other files are stored in /usr/share/packetbeat, while the config files are stored in /etc/packetbeat. For linux installs using rpm/deb we also install a packetbeat wrapper script into /usr/bin, configuring the correct paths. Don't run packetbeat from /usr/share/packetbeat/bin. You can set the config file to use via -c <path/to/config/file>.
Really appreciate your help on this, but I am as confused as ever regarding this apology I am a newbie to packetbeat I must admit. What is this wrapper script called in /usr/bin?
And how would I set the path? and what to set it too? via -c <path/to/config/file>
With 6.1 the wrapper script is called packetbeat (given you installed via rpm/deb packet). That is, do not switch to /usr/share/packetbeat/bin and don't run ./packetbeat from this directory.
The script provided in /usr/bin/packetbeat sets up the path and will run /usr/share/packetbeat/bin/packetbeat -c /etc/packetbeat/packetbeat.yml for you.
Just switch to your home directory and test packetbeat by running:
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.