Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 2.31 KB

README.md

File metadata and controls

59 lines (44 loc) · 2.31 KB

About

A test project for experimenting with using logstash and elasticsearch. It also installs Redis.

  • Downloads and extracts logstash
  • Downloads and installs elasticsearch as a service
  • Installs redis as a service

Instructions

  1. Install Git for Windows and be sure to include the optional Unix tools. This will give you SSH. Also, choose the option to install the tools onto your Windows path.
  2. Install VirtualBox
  3. Install Vagrant
  4. Install the ChefDK. Be sure to enable the ChefDK Environment Customization feature during the install.
  5. On the command line, install the Vagrant Berkshelf plugin: vagrant plugin install vagrant-berkshelf
  6. Create a folder
  7. On the command line, go into the folder you created and call: git clone https://github.com/NickMRamirez/search_project.git
  8. Still on the command line, call: vagrant up
  9. If the virtual machine gives you warnings about timing out, then wait for it to complete (or stop it) and then call: vagrant provision

Usage

  1. SSH into the machine by calling on the command line: vagrant ssh. Use vagrant as the SSH username and password
  2. Open the Redis CLI via redis-cli
  3. Add some data to Redis with commands such as (the key should begin with logstash::
> redis-cli
127.0.0.1:6379> LPUSH logstash "my value"

Or, even better, send a string of JSON:

127.0.0.1:6379> LPUSH logstash '{ "errormsg" : "My message!", "date" : "2015-12-12" }'
  1. Open a browser on your host machine and go to any of the following URLs:
> redis-cli
127.0.0.1:6379> LPUSH logstash "my value"

The value will be transferred, by logstash, to elasticsearch. You can then see it via a URL like the following:

http://172.28.128.3:9200/_search?q=redis-input