Giter Club home page Giter Club logo

twitter-elk's Introduction

twitter-elk

Searches public twitter for keywords, writes the tweet data into an elasticsearch index (via logstash), and lets you graph/map the data with kibana.

Docker files

To start

  • clone or fork project
  • go to: https://apps.twitter.com/ and create a new app and get consumer/oauth keys
  • edit logstash/config/twitter.conf put your consumer and oauth keys in (found above)
  • edit logstash/config/twitter.conf and adjust keywords More Info
  • install docker and docker-compose
  • Start with docker-compose up
  • You can also use docker-compose up -d to run as a backgroun daemon
  • open 127.0.0.1 in a browser to view data

WARNING

This exposes port 80 to all ips on your computer and forwards it to kibaba with no auth. Anyone who is on your network/can access your IP will be able to view all of the data saved here. Edit docker-compose.yml if you would like to tinker with this. If you want to add security, you'll need to install the x-pack plugin and add security. More info found here

twitter-elk's People

Contributors

amerenda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

twitter-elk's Issues

Logstash Twitter access via proxy

Hi,
I'd love to use this docker setup but I'm not able to get the proxy configuration up & running.
Without the proxy config I get the following WARN:
twitterelk_logstash | 10:52:14.114 [[main]<twitter] WARN logstash.inputs.twitter - Twitter client error {:message=>"Connection refused - Connection refused", :exception=>"Errno::ECONNREFUSED", :backtrace=>["org/jruby/ext/socket/RubyTCPSocket.java:126:in `initialize'", "org/jruby/RubyIO.java:871:in `new'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-3.0.8/lib/logstash/inputs/twitter/patches.rb:26:in `stream'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-3.0.8/lib/logstash/inputs/twitter/patches.rb:58:in `request'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/twitter-5.15.0/lib/twitter/streaming/client.rb:37:in `filter'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-3.0.8/lib/logstash/inputs/twitter.rb:138:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:470:in `inputworker'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:463:in `start_input'"], :options=>nil}

i also tried to add the following configuration to logstash/config/twitter.conf
use_proxy => "true" proxy_address => "proxyhost" proxy_port => "8080"

if i add it to the top it causes logstash to exit with status 1 and if i add it to the end of the
config file it seems it's ignoring it's values.

Any idea of how to be able to use your containers behind a firewall / proxy?
Thanks and
many regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.