How to install logstash on Suse - logstash

I am trying to install logstash on SLES . Here are the version details
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2
# This file is deprecated and will be removed in a future service pack or release.
# Please check /etc/os-release for details about this release.
NAME="SLES"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp2"
Most of the instructions available over google are for ElasticSearch but not for logstash. I tried rpm based installation as described here https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html but here too they install elasticsearch using zypper install elasticsearch I am trying to install logstash 6.1 or later. what is the best way to install logstash on SLES? While installaing elasticsearch too I get an error as follows:
elasticsearch-6.1.3-1.noarch (Elasticsearch repository for 6.x packages): Signature verification failed [4-Signatures public key is not available]
Here is my elasticsearch.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

It's probably too late, but it's better late than never. Anyway, I had the same issue and this article gave me an idea for a solution: https://en.opensuse.org/User:Tsu2/elasticsearch_logstash_official_repos. This part specifically solved my issue:
Download TAR file and extract. Because Elasticsearch is a Java binary, the extracted files can be run from anywhere
So, what I did is I've downloaded the Logstash TAR file, SCPed it to my SUSE server, and extracted it to my ELK folder. Then I ran it using its bin/logstash executable.
I hope this solution helps you and others who stumble on this page on their search for the solution.

Related

Apache version upgrade issue

At present we are on Apache/2.2.15 (UNIX) version. To fix the vulnerabilities we are suggested to upgrade to new version. I got new version from online using "wget" command and followed steps mentioned on this link http://httpd.apache.org/docs/2.2/install.html#download.
Once I am done, checked version using httpd -v. It gives me old version Apache/2.2.15 (UNIX). If I check using /usr/local/apache2/bin/httpd - v. It gives me new version. Did I successfully upgraded the version or not? If not what should I do?
I tried "yum install httpd" - It says "Nothing to do".
You now have two versions of Apache installed. You have the one installed with the system package manager (yum) in /usr/sbin/httpd. You have one installed manually in /usr/local/apache2/....
Which one you get will be determined entirely by which path you use.
In general, mixing system-managed packages with manually installed packages is a recipe for trouble. If you want to stick with the newer version in /usr/local, you should remove the system version, and realize that you will lose some manageability. For example, you will no longer be able to use yum install ... to install new Apache modules, and you will not be able to verify the installed files using tools like rpmverify.
If your distribution currently has Apache 2.2.x, that suggests your distribution is fairly old. For example, RHEL (and CentOS) 7 (and similar variants) have version 2.4.6 packaged, so you may want to update your host to something newer than whatever you're running now.
Yes, its successfully upgraded as per the screenshot.
httpd 2.2.15 is the version with RHEL 6 repository, here HTTPD_HOME is /etc/httpd (Highest version provided for HTTPD via RPM RHEL 6 is 2.2.15)
httpd 2.4.6 is the version with EPEL-HTTPD24 repository, here HTTPD_HOME is /usr/local/apache2/

Oracle Linux 7 repository to update channels in Spacewalk

I've been deploying VMs with kickstart files and OSes like CentOS7 and Oracle Linux 7 in Spacewalk, I even update the VM with a yum update in the post installation kickstart script, which is amazingly cool. After installation though, it doesn't really keep up to date with the latest version of the operating system, I'd have to download and upload the .ISO to Spacewalk every time an update comes around or do a yum update on the VM itself. Then I found out you can link and schedule an OS repository. I already have a setup of this kind for CentOS7 in Spacewalk.
This works for me:
CentOS7 repository for spacewalk channel example
The link to the CentOS7 repo
However, I haven't found any public repos for OL7. Does this kind of repo simply not exist for Oracle Linux 7?
Also, is there perhaps a better solution to this problem? I'm planning on using Puppet with this setup for the software aspect.
Thanks in advance.
From: Oracle® Linux Administrator's Guide for Release 7
https://docs.oracle.com/cd/E52668_01/E54669/html/ol7-downloading-yum-repo.html
2.3 Downloading the Oracle Linux Yum Server Repository Files
Note
The following procedure assumes that yum on your system is configured to expect to find repository files in the default /etc/yum.repos.d directory.
To download the Oracle Linux Yum Server repository configuration file:
As root, change directory to /etc/yum.repos.d.
cd /etc/yum.repos.d
Use the wget utility to download the repository configuration file that is appropriate for your system.
wget http://yum.oracle.com/public-yum-release.repo
For Oracle Linux 7, enter:
wget http://yum.oracle.com/public-yum-ol7.repo
The /etc/yum.repos.d directory is updated with the repository configuration file, in this example, public-yum-ol7.repo.
You can enable or disable repositories in the file by setting the value of the enabled directive to 1 or 0 as required.
Oracle provides publicly accessible yum repos at yum.oracle.com. They even have their own build of Spacewalk available to customers.
Further, I added ULN support to Spacewalk a while ago, so you can configure it to sync content from ULN if you're a customer. See the Oracle Spacewalk Client Life Cycle Guide for more info: https://docs.oracle.com/cd/E52668_01/E71078/html/swk24-crreposwc.html
Alright REW and Djelibeybi both gave me good answers, instead of using the repo file though I opten to fully use Spacewalk and use the links in the repo file to update the channel. In hindsight I can't believe I didn't come up with this sooner because I knew of the yum public file.
The link to repo file was wrong,
I instead should have just used the links in the repo file to create multiple Spacewalk Channel repositories.
Thank you all, I'm very happy with this solution.

upgrade ICU and intl

After installing Symfony 2 and check /config.php I got this notification:
intl ICU version installed on your system is outdated (55.1) and does not match the ICU data bundled with Symfony (57.1)
To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.
How can I upgrade this?
I'm using Ubuntu 16.04
This is just a warning and you can safely ignore the message. I've response to similar questions on this. See this URL for more details:
https://github.com/symfony/symfony/issues/15007
Note: You'll also get the message when you run:
php bin/symfony_requirements
The message will say it's an "Optional recommendation".
EDIT #2
Based on your comments. You need to upgrade ICU. Sounds like you might be on Debian, and it might be possible to upgrade. Try these commands.
yum list available |grep icu
This shows what packages are available and searches for "icu". The second column shows the version. If there is a version that shows "57.1", then you should be able to use yum install to install it. Otherwise you would have to build and install on your system, which is much more difficult to give you a definite answer.

Is it possible to install JBoss Fuse 6.3 on Linux (Ubuntu 16.04.1 LTS)?

I have gone through the JBoss FUSE guide in official guide but I could not see any details regarding capabilities of install FUSE in Linux server. Have any one try this before? I have not seen any document regarding this, Appropriate if some experienced person provide feedback about this.
Is it possible to install the FUSE in Linux server for example Ubuntu 16.04.1 LTS ? If it's possible is there any reference document guideline ?
Yes it's possible to run the FUSE on linux without any issue. Only thing is it is required to install JDK and its better to have maven installed in your PC as well.(Note that path variable needed to be updated after install JDK and maven). If you haven't install please go through following guide lines.
01) Install JDK in linux
02) Install maven in linux
After you installed those two then you need to download the relevant zip file from JBoss Fuse official site. Then extract the zip file in to desired location. (This location can be any place you want to install in folder structure)
Open the command line and go to bin folder on extracted folder.
then Type following command and press enter
./fuse
As show on below image
Then you will see similar interface to below(Usual fuse loading interface ).
Since there is not much dificulties on this I don't think there will be any documentation regarding this. I believe this steps will help you to setup JBoss Fuse in linux environment.

Compatibility Issue from centos 5.x to 6.x

I have an rpm compiled in centos 5.x which requires libnetsnmp.so.10 and other shared objects. I want to create an rpm of it which is to be run on centos 6.x but it fails to install as on installation it says :
error: Failed dependencies:
libnetsnmp.so.10()(64bit) is needed and so on...
But Centos 6.x contains libnetsnmp.so.20
So I created symbolic links of libnetsnmp.so.10 of libnetsnmp.so.20.
But problem is still the same.
So can you please help me to resolve this problem?
If recompiling for Centos 6 isn't an option, you can try two things, first, install the correct libnetsnmp in the Centos 6 server. If that's not an option, you can add the following to your RPM spec file:
Autoreq: no
This will cause it not to scan your binary for dependencies (such as dynamically linked libraries), and automatically build that into the RPM.
Of course, if that version of libnetsnmp is ACTUALLY required, your just hosing yourself down the road, but likely newer versions will work just fine.

Resources