Skip to content

NickMRamirez/search_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages