Real time stats for Heartbleed on Twitter : With logstash, elasticsearch and Kibana

What is heartbleed ?

http://heartbleed.com/

Heartbleed stats from Twitter ( 7 days and 571K Tweets ),

  • 7 days and more than half a million tweets about #heartbleed

hb1

  •  How many times was openssl mentioned ? 49K

openssl

  • Different cloud Vendors

cloud

  • Google vs Apple vs samsung

google

  • iOS vs Android

ios

  • Netflix vs rest

netflix

  •  wordpress.com vs blogspot.com 

wp

 

A quick summary, on how to ?

  • 1 medium Ec2 instance. Even though i thought a small was more than enough.

How much it costed me ?

$29.00

Step 1 : Launch a new Ec2 instance

Step 2 : Download logstash and untar

input {
 twitter {
 consumer_key => ""
 consumer_secret => ""
 keywords => ["#heartbleed","heartbleed","heartbleed.com"]
 oauth_token => ""
 oauth_token_secret => ""
 tags => ["#heartbleed"]
 type => "heartbleed"
}

}


output {
 stdout {codec => rubydebug }
elasticsearch {
 embedded => true
 }
}Step 3 : Start logstash as

Step 3 : start Logstash as,

  • nohup bin/logstash -f twitter.conf -v –debug &

Step 4 : Access your kibana as,

  • http://{your ec2 instance IP}:9200/_plugin/kibana/src/index.html

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s