Skip to content
Snippets Groups Projects
Commit 6453c3bd authored by Yifan.Tian's avatar Yifan.Tian
Browse files

update,new data set

parent 53c4ee6b
No related branches found
No related tags found
1 merge request!2Yifan.tian main patch 53600
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
# logstash config file has three sections:
# input{}, output{}, and (optional) filter{}; add plugins
# to specify how events should be handled in each section
input {
twitter {
# set key and token values from the previous step
consumer_key => "FdAf9VIdxEwrUkLf54chzI0A5"
consumer_secret => "apoVdoWNbWCOAglOycDPjLF5rGy7Gc20YkXaBlTjLZZ50Y33ht"
oauth_token => "988510569031458821-mu7TNWYxr3AAdBlFDbumG5W9lwdavCo"
oauth_token_secret => "ZE9V098RBxqL6PfgWQjhKjixLOLXupYl8k9fs5Y5nwUdK"
# assume we are interested in tracking all family violence tweets
keywords => ["grève"]
languages => ["fr"]
locations => "-54.5247541978, 2.05338918702, 9.56001631027, 51.1485061713"
full_tweet => true
ignore_retweets => true
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "tweets"
}
stdout {
# include this to pretty-print the event's json to stdout
codec => rubydebug
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment