Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(http://developers.redhat.com)
BLOG
Follow
(http://developers.redhat.com/products/rhel/download/).)
Prerequisites
Your server runs RHEL 6 or RHEL 7. Some parts of the ELK stack support RHEL 5, but
not all, so dont try using it. (By the way, if youre still using RHEL 5, you should probably
Sign me up
be upgrading soon, since its EOL date is fast approaching
(https://www.redhat.com/archives/epel-devel-list/2012-February/msg00000.html).)
Build a website with
You want to install ELK using the official RPM packages from the developers. (Yes,
you
WordPress.com
could pull the source through git and compile it yourself, but thats outside
the scope of
(https://wordpress.com/?ref=lof)
this post.)
You want to install the latest version of ELK. You could install older versions by telling yum
to download specific packages (but I assume you want to be as up-to-date as possible).
Youre happy using Oracle Java, which is what well install to meet the Java dependency of
ELK. If you want to use a different version of Java, check the Elasticsearch support matrix
(https://www.elastic.co/support/matrix#show_ jvm) to make sure it will work. (Yes,
OpenJDK is supported.)
curlinsecureheader"Cookie:gpw_e24=http%3A%2F%2Fwww.oracl
e.com%2Foraclelicense=acceptsecurebackupcookie"L"http://d
ownload.oracle.com/otnpub/java/jdk/8u77b02/jdk8u77linuxx64.
rpm">jdk8u77linuxx64.rpm
Lest I start a war between curl and wget fans, I suppose I should tell you how to download Java
using wget, too. The commands are:
cd/tmp
wgetnocookiesnocheckcertificateheader"Cookie:gpw_e
24=http%3A%2F%2Fwww.oracle.com%2Foraclelicense=acceptsecureba
ckupcookie""http://download.oracle.com/otnpub/java/jdk/8u77b
02/jdk8u77linuxx64.rpm"
Whether you use curl or wget to download Java, you should end up with a file in /tmp called
jdk-8u77-linux-x64.rpm. The next step is to install this file by running yum (as root) like so:
yumylocalinstalljdk8u73linuxx64.rpm
Next, open a blank text file in your favorite text editor (be sure to run the editor as root, so that
you have the necessary save permissions) and fill it with these lines:
name=Elasticsearchrepositoryfor2.xpackages
baseurl=http://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPGKEYelasticsearch
enabled=1
[kibana4.4]
name=Kibanarepositoryfor4.4.xpackages
baseurl=http://packages.elastic.co/kibana/4.4/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPGKEYelasticsearch
enabled=1
We also need to do a quick configuration tweak for Kibana. Open the file
/opt/kibana/config/kibana.yml, find the line that reads server.host: 0.0.0.0 and replace it
with server.host: localhost
You should now start Kibana with systemctl start kibana. You can stop it using systemctl as
well. And to configure Kibana to start automatically at boot, run chkconfig kibana on
Using ELK
You now have a basic ELK stack installed. Depending on exactly what you want to do with it,
however, you may want to take some additional steps. Consider the following tweaks and
additions:
By default, Kibana (the Web interface that you use to search and analyze your
Elasticsearch data) listens on localhost at port 5601. That means you can connect to it
from your RHEL server at localhost:5601. If you want to be able to access Kibana from
other servers, too, youll need to do some additional configuration. Refer here
(https://www.elastic.co/guide/en/kibana/current/kibana-server-properties.html) for
details.
Above, we did a basic installation of Logstash. Your exact configuration of the tool will
depend on which plugins you want to use and how you want to work with data. Basic
configuration instructions are available here
(https://www.elastic.co/guide/en/logstash/current/configuration.html), and more complex
examples are here (https://www.elastic.co/guide/en/logstash/current/configexamples.html).
By default, your ELK stack will only let you collect and analyze logs from your local server.
But you can add remote logs to the mix by using Filebeat, which collects logs from other
hosts. Here (https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-gettingstarted.html) are instructions for installing and setting up Filebeat to work with your ELK
stack.
Take advantage of your Red Hat Developers membership and download RHEL
(http://developers.redhat.com/products/rhel/download/) today at no cost.
Rate this:
1 Vote
Share this:
Twitter(http://developers.redhat.com/blog/2016/06/07/howtoinstallelasticstackelkon
redhatenterpriselinuxrhel/?share=twitter&nb=1)
Facebook 6 (http://developers.redhat.com/blog/2016/06/07/howtoinstallelasticstackelk
onredhatenterpriselinuxrhel/?share=facebook&nb=1)
Reddit(http://developers.redhat.com/blog/2016/06/07/howtoinstallelasticstackelkon
redhatenterpriselinuxrhel/?share=reddit&nb=1)
Google(http://developers.redhat.com/blog/2016/06/07/howtoinstallelasticstackelkon
redhatenterpriselinuxrhel/?share=googleplus1&nb=1)
LinkedIn 23 (http://developers.redhat.com/blog/2016/06/07/howtoinstallelasticstackelk
onredhatenterpriselinuxrhel/?share=linkedin&nb=1)
Related
(http://developers.redhat
.com/blog/2016/09/01/s
ix-popular-incidentmanagement-tools-forred-hat-enterpriselinux/)
Six popular incident
management tools for
Red Hat Enterprise Linux
(http://developers.redhat
.com/blog/2016/09/01/s
ix-popular-incidentmanagement-tools-forred-hat-enterpriselinux/)
In "DevOps"
(http://developers.redhat
.com/blog/2016/06/02/i
nstalling-mongodb-onred-hat-enterpriselinux/)
Installing MongoDB on
Red Hat Enterprise Linux
(http://developers.redhat
.com/blog/2016/06/02/i
nstalling-mongodb-onred-hat-enterpriselinux/)
In "Red Hat Enterprise
Linux"
LeaveaReply
Enteryourcommenthere...
ElasticSearch
(http://developers.redhat
.com/blog/2016/08/23/
setting-up-a-lamp-stackon-rhel/)
Setting up a LAMP stack
on Red Hat Enterprise
Linux
(http://developers.redhat
.com/blog/2016/08/23/
setting-up-a-lamp-stackon-rhel/)
In "PHP"
ELK
rhdfx8
<
SEARCH
Follow us:
(https://twitter.com/#!/rheldevelop)
(http://www.facebook.com/rheldevelop)
(https://www.linkedin.com/in/rheldevelop)
(https://rhdevelopers.wordpress.com/feed/)
(https://plus.google.com/s/rhel%20develop)
(https://developers.redhat.com/register)
Tweetsby@rhdevelopers
RedHatDevelopers@rhdevelopers
AsimpleguidetoprovisioningVagrantboxeswithAnsible
wp.me/p2WBxv1MX7
AsimpleguidetoprovisioningVagrantboxeswithAnsible
Overthelastcoupleofweeks,IvebeenworkingonsomeRedH
developerblog.redhat.com
1h
RedHatDevelopers@rhdevelopers
FourbestpracticesforsecuringRedHatEnterpriseLinux
wp.me/p2WBxv1MU3
FourbestpracticesforsecuringRedHatEnterpriseLinux
FourbestpracticesforsecuringRedHatEnterpriseLinux
Deployinganoperatingsystemonyourshinynewserverorvirtua
developerblog.redhat.com
07Sep
RedHatDevelopersRetweeted
BurrSutter@burrsutter
#Kubernetesisthe"LinuxKernel"oftheDockercontainerplatform
@TheSteve0
05Sep
RedHatDevelopers@rhdevelopers
Debugging.NETonRedHatEnterpriseLinuxfromVisualStudio
wp.me/p2WBxv1N1m
Debugging.NETonRedHatEnterpriseLinuxfromVisualStudio
BeingabletoedityourC#(orF#forthatmatter)codeonyourLin
developerblog.redhat.com
06Sep
RedHatDevelopers@rhdevelopers
PuttingtheMicroinMicroserviceswithWildFlySwarmwp.me/p2WBxv
1MU0
POPULAR TAGS
Accelerated Development and Management
(http://developers.redhat.com/blog/tag/accelerated-developmentmanagement/)
containers (http://developers.redhat.com/blog/tag/containers/)
DevNation (http://developers.redhat.com/blog/tag/devnation/)
DevOps (http://developers.redhat.com/blog/tag/devops/)
Docker (http://developers.redhat.com/blog/tag/docker/)
gcc (http://developers.redhat.com/blog/tag/gcc/)
OpenShift Enterprise by Red Hat
(http://developers.redhat.com/blog/tag/openshift/)
python (http://developers.redhat.com/blog/tag/python/)
RHEL (http://developers.redhat.com/blog/tag/rhel/)
software collections
(http://developers.redhat.com/blog/tag/software-collections/)