Solved: Simple way to obtain elasticsearch for ubuntu 12.04

Asked by Julianloui

Last month was able to obtain Elasticsearch for Ubuntu 12.04 in a fairly simple way for two Ubuntu 12.04 machines, but I no longer remember the exact sequence of commands.

I would appreciate someone helping me in this matter. I am trying to learn Logstash on a new Ubuntu 12.04 machine, using Elasticsearch.

Julianloui
-----------------------------------------------------------------------------------------------------------------------------------------
 <> <> <> Elasticsearch Question Now Resolved <> <> <> 2013-02-18

Last night I succeeded in installing elasticsearch-0.20.5.deb by downloading it from www.elasticsearch.org into my Ubuntu user directory, where I have placed all the logstash project-related files, such as logstash-elasticsearch.conf, logstash-simple.conf, logstash-1.1.9-monolithic.jar, and bashrc with many handy aliases specially created to simply my learning of logstash and elasticsearch.

I installed elasticsearch in my user directory as follows:
sudo dkpg -i elasticsearch-0.20.5.deb
sudo ap-get install -f
I verified my elasticsearch installation by doing the following sequence of commands
given by a tutorial at www.logstash.net:

java -jar logstash-1.1.9-monolithic.jar agent -f logstash-elasticsearch,conf
curl -s http://127.0.0.1:9200/_status?pretty=true | grep logstash
curl -s -XGET http://localhost:9200/logstash-2013.02.17/_search?q=@type:stdin

I hope this report may be of use to someone new to logstash and elasticsearch.

Julianloui

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Julianloui
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you run:

history | less

You can review your commands and see how you installed it.

Revision history for this message
Julianloui (julianloui) said :
#2

Andrew,

Thank you so much for introducing me to a very powerful and useful Linux command. I found 260 previously executed commands on my second Ubuntu 12.04 machine which don't go far back enough to include my Elasticsearch-related work, which was done about three wekks ago.

Julianloui

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Could search in software centre or in /var/log/dpkg.log

Revision history for this message
Julianloui (julianloui) said :
#4

Elasticsearch does not exist in my new Ubuntu system. Thanks for the suggestion.

Julianloui

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

check on other systems. I assumed you had multiple systems, some with the application installed.... is this not the case?

Revision history for this message
Julianloui (julianloui) said :
#6

I've just resolved the posted question. Please see Item #1.

Julianloui