Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. 1. Create a 4gb droplet on digital ocean
  2. 2. run the following (this installs openjdk through :
  3.  
  4. apt-get update && sudo apt-get install default-jre && wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - && sudo apt-get install apt-transport-https && echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list && sudo apt-get update && sudo apt-get install logstash
  5.  
  6. 3. run the following (starts logstash, it will take a minute to start and then will take any input from stdin and print it on the screen
  7. /usr/share/logstash/bin/logstash -e 'input { stdin { } } output { stdout {} }'
  8.  
  9. 4. press CTRL+C to kill logstash
  10.  
  11. 5. run the same command gain, this time logstash will simply hand and never start.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement