Setting Up Kibana on Mac OS X Mavericks - macos

I am trying to learn about the ELK stack (ElasticSearch, Logstash and Kibana). In an effort to get started, I've been running through the "Getting Started" guide found at http://logstash.net/docs/1.4.0/tutorials/getting-started-with-logstash. I've been following these steps on a Mac OS X Mavericks installation. I did do one thing different, though.
After downloading the Logstash and Elasticsearch tarballs, I copied their contents into the following locations:
Logstash: /Applications/dev/logstash/1.4.0/
Elasticsearch: /Applications/dev/Elasticsearch/1.1.0
I then start Elasticsearch using the following command from a terminal:
sudo /Applications/dev/Elasticsearch/1.1.0/bin/elasticsearch
I then start a new terminal window. In that new terminal window, I start Logstash using the following command:
sudo /Applications/dev/logstash/1.4.0/bin/logstash -e 'input { stdin { } } output { elasticsearch { host => localhost } } '
Logstash appears to start just fine. If I enter 'you know, for logs' as mentioned in the getting started guide, I can see the results using POSTMAN. However, I'm stuck on Kibana.
I've downloaded Kibana using the following command:
git clone https://github.com/elasticsearch/kibana.git kibana
I've placed the downloaded files into /Applications/dev/kibana/3.0.0. I'm now stuck on how to actually bring Kibana up in a web browser. I know that somehow I need to serve these files. I see server stuff in this sample. However, I'm not sure if
There is a recommended web server for Kibana
How to setup a a web site on a Mac OS X machine. If I were on Windows, I'd just use IIS and point it at my directory. I'm sure there's something similar on Mac OS X. However, I'm not sure what that is.
Thank you!

While downloading the packages is perfectly fine, your install can be much easier on OS X if you use homebrew. (http://brew.sh)
Simply run:
brew install elasticsearch
brew install logstash
And if you are missing the proper Java JDK or JRE files, homebrew will tell you where to get them from.
If you are running the OS X Server App (see App Store) and have websites service enabled you can also simply drop the Kibana files into the default website directory:
/Library/Server/Web/Data/Sites/Default/
or a subdirectory like:
/Library/Server/Web/Data/Sites/Default/kibana
Hope this helps!

Kibana 3
Kibana is a html/Js website. So, you only need to prepare a web server for it! For example, an apache server. Mavericks has already install apache server. After you start apache server, put the kibana folder to the apache document root. Then you can visit Kibana by
http://localhost/kibana
Remember to config the the elasticsearch server in config.js.
Update:
Kibana 4 has buildin web server. After you start your Kibana, you can directly visit your page at : http://localhost:5601

I updated to the latest Java Version by downloading JDK Here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Once Java is installed, I installed via brew:
brew install elasticsearch
brew install logstash
Download the Kibana binary here for mac: http://www.elastic.co/downloads/kibana
Extract and run the bin/kibana executable and point your browser to localhost:5601
No need to download any third party servers.
Cheers!
UPDATE: Instead of step 3) & 4) You can also install kibana via brew: brew install kibana

Related

Elasticsearch 7.6.2 service not starting on CentOS 7.x with cPanel installed on it

I have installed elasticsearch version 7.2.6 on CentOS 7.x with cPanel on it. However, after installing it, elasticsearch service is not running. Here is the screen capture of the error. I have already tried. https://support.cpanel.net/hc/en-us/articles/360055446413-How-To-Install-Run-Elasticsearch but the issue is not resolved. Any help will be appreciated.
I have set my IP address in network.host
You probably have data from an older ES install. If you're installing a new version and want to keep your older data, you need to go through the upgrade path.
otherwise, if you don't care about your older data and simply want to install the newer version, simply delete the content of /var/lib/elasticsearch and install the new version.

bind source path does not exist: /host_mnt

I have a ddev installation on macOS which I used for a while.
ddev 1.16.2
docker 20.10.0
macOS 11.0.1 - Intel
Today I upgraded to docker 20.10.0 and in the process to ddev 1.16.2.
When I start an existing site, that worked all the time I get
Creating ddev-mysite-db ... error
ERROR: for ddev-mysite-db Cannot create container for service db: invalid mount config for type "bind": bind source path does not exist: /host_mnt/Users/me/Documents/Development/WebSite/mysite/.ddev
This started to happen after I upgraded docker from the previous version. Upgrading ddev did not change too much.
Even when I create a new site, the same error message pops up so I am pretty much stuck.
At least for me it looks like the docker 20.10.0 breaks ddev. Any ideas how to deal with that are very much appreciated.
Docker/macOS are not allowing access to the directory ~/Documents.
Starting with macOS Catalina, ~/Documents is a "protected directory", so you have to allow docker access to it, and docker should prompt.
However, Docker Desktop for Mac's 3.0.0 release (which I imagine you're referring to) had a bug where it did not do this properly. I imagine you need to upgrade to version 3.0.1 which was released today. Just "Check for updates"
In Docker > Preferences > Experimental features you can try disabling gRPC, and make Docker use osxfs file sharing system.
Reference: https://github.com/docker/for-mac/issues/4859#issuecomment-689012097

ElasticSearch - uninstall version 6.4.3, install version 6.4.2 - Linux Ubuntu

We have a 3-node cluster with ElasticSearch 6.4.3 on Ubuntu 16.04. There is nothing existing outside of the fresh install of ES - no indexes, no Kibana, no Beats, no Logstash, etc.
I have been asked to downgrade to version 6.4.2. I have limited Linux experience, but enough to be able to run command line commands and understand the output. Google has lead me to bits and pieces around accomplishing this, but I'd feel a lot less anxiety around it if someone with ES experience may be able to point me to something that's a bit more step-by-step.
I do have this link to download 6.4.2, but one of the things I need to know is which file to download: https://www.elastic.co/downloads/past-releases/elasticsearch-6-4-2
Sure here you go with step by step guide, As I did this for you, using your version.
Using this link https://www.elastic.co/downloads/past-releases/elasticsearch-6-4-2, which you mentioned, download the tar file to your local system.
Use SCP to transfer the .tar file to your ubuntu instance, I used my AWS ubuntu instance.
scp -i ~/your-identity-file ~/Desktop/elasticsearch-6.4.2.tar.gz
ubuntu#aws-ec2-instance-ip:/home/ubuntu
Untar file using tar -xvf elasticsearch-6.4.2.tar.gz command.
Go to config folder like cd elasticsearch-6.4.2/config/ and set the proper values in elasticsearch.config.
Start the elasticsearch from bin folder ./elastic command.
Update:- Based on the chat with OP, Adding official ES link https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html and https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html for detailed instruction.

Setup local LDAP server in mac OSX

I've followed this (https://github.com/IntersectAustralia/acdata/wiki/Setting-up-OpenLDAP) tutorial for set up LDAP server in my local machine.
I've done all these steps
Installed Homebrew
Installed openldap using brew command, including berkeley db
Updated the slapd.conf file
Started the server using command "sudo /usr/local/libexec/slapd"
Now how do i know the LDAP server is running?
I tried a lot but i could'nt succeed,later i deiced to go with ADS (http://directory.apache.org/studio/). Its easy to set up. Believe me i made the installation and configuration in 5 mins. Thank you apache.
Use -d3 suffix.
Run sudo /usr/libexec/slapd -d3, it will show you the details.

elastic search will not start

I am running mac osx. I installed elasticsearch with "pip install elasticsearch". I cannot start the elasticsearch server. None of the start commands I tried work. For example, "bin/elasticsearch -f" resulted in "No such file or directory". Please help.
What is the version of elasticsearch you are using and from where you have downloaded it?
On my Mac OS I have downloaded the zip file from elasticsearch download website.
Unzipped it on my machine.
and Started the ES using "./bin/elasticsearch -f" command.
Check that you have permission on this files in bin directory.
I solved the problem. Basically using "pip install elasticsearch" only allows you to use elasticsearch directly in python (my theory). So I installed elasticsearch a different way and it worked!
Procedure:
a) brew install elasticsearch
b) elasticsearch -f -D es.config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
For mac if installed using homebrew
Navigates to /usr/local/Cellar/elasticsearch/6.7.0(your version)/libexec/config/elasticsearch.yml
and from below mentioned block
Use a descriptive name for your cluster:
change cluster name as show below
cluster.name: elasticsearch_your_system_name >>> cluster.name:elaticsearch

Resources