As noted above, we'll install Oracle Java, although you could use OpenJDK if you like. Our first task is to install Java, since Elasticsearch and Logstash require Java to run. Let's dive into the installation process. If you want to use a different version of Java, check the Elasticsearch support matrix to make sure it will work. You're happy using Oracle Java, which is what we'll install to meet the Java dependency 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). You want to install the latest version of ELK.(Yes, you could pull the source through git and compile it yourself, but that's outside the scope of this post.) You want to install ELK using the official RPM packages from the developers.(By the way, if you're still using RHEL 5, you should probably be upgrading soon, since its EOL date is fast approaching.) Some parts of the ELK stack support RHEL 5, but not all, so don't try using it. (RHEL is now free for development use - download it here.) Prerequisitesįirst, let's go over some prerequisites. ELK is still easy enough to install if you follow the proper steps.īelow, we'll walk through configuring a Red Hat Enterprise Linux (RHEL) server for ELK, installing each of the requisite components and configuring them to work with one another. Since ELK has multiple parts, and some of them have other dependencies, setting up ELK is not as simple as installing other stacks, which sometimes require a simple one-line yum installation command. Based on Elasticsearch, Logstash and Kibana, ELK is a fully open source solution for searching, analyzing and visualizing data in any format, at any scale. Here's another open source software stack you should know about in our present age of cloud and big data: the Elastic Stack, or ELK. Linux, the Apache Web server, MySQL, and PHP, the four ingredients of the LAMP stack, which revolutionized data centers and made open source a big deal two decades ago, are probably the most famous example. In my case I was primarily using just MetricBeat to collect statistical data from the vCenter appliance.Sometimes, software just goes together. The same steps can be repeated for FileBeat. Adding MetricBeat as a service and confirming Since the Beat is working, the last step can be performed, which is to configure it to run automatically. Upon viewing data in Kibana, it’s possible to confirm that the MetricBeat information is flowing through correctly. As a sanity check, I do a test on the configuration and an initial run via command line, outputting to the console Performing a test run of MetricBeat In my case, I already had a configuration file for MetricBeat. Configuring The Beatsįollowing the installation, the configuration files can be updated for each beat. This can be avoided by explicitly installing the 64-bit version, using the command: tdnf install metricbeat.x86_64 (Thanks to Paul in the comments suggesting this). An issue with this that I ran into was just specifying the beat package name will cause the 32-bit version to be installed. With the correct gpgkey value, the install can proceed. Information returned about FileBeat via tdnf Gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-elasticsearchĪfter doing these steps, the tdnf repolistcommand output shows a new entry. For the sake of consistency, I put it in the same directory as the other repositories. repo file, the gpgkey path needs to reflect where the file was downloaded to. So the first variation is downloading the gpgkey file. Firstly, it appears tdnfdoesn’t support a HTTP URL for the gpgkey value. Adding the ElasticStack RepositoryĪdding the repository requires a few deviations from what’s in ElasticStack’s documentation. Based on this, I attempted to installįilebeat first using the repo-based approach as I found it did a better job of handling file permissions. Tdnf appears to use the same format for repositories as yum in terms of location and content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |