Created
March 27, 2018 15:37
-
-
Save nkmrtty/f170b7ff470a9e2bfd0af768b1853c94 to your computer and use it in GitHub Desktop.
Easy tweets collection system = Docker + Elasticsearch + Kibana + Logstash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch-basic:6.2.2 | |
environment: | |
- discovery.type=single-node | |
ports: | |
- 9200:9200 | |
volumes: | |
- ./elasticsearch/data/:/usr/share/elasticsearch/data/ | |
networks: [elastic] | |
kibana: | |
image: docker.elastic.co/kibana/kibana:6.2.2 | |
ports: | |
- 5601:5601 | |
networks: [elastic] | |
logstash: | |
image: docker.elastic.co/logstash/logstash:6.2.2 | |
volumes: | |
- ./logstash/pipeline/:/usr/share/logstash/pipeline/ | |
networks: [elastic] | |
networks: | |
elastic: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
twitter { | |
consumer_key => "AAA" | |
consumer_secret => "BBB" | |
oauth_token => "CCC" | |
oauth_token_secret => "DDD" | |
use_samples => true | |
full_tweet => true | |
} | |
} | |
output { | |
elasticsearch { | |
hosts => ["elasticsearch"] | |
index => "twitter_sample_stream" | |
document_type => "tweet" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment