· 8 years ago · Dec 27, 2016, 10:56 PM
1[root@elastic-centos7a conf.d]# grep -v secret twitter-paris.conf
2input {
3 twitter {
4 # add your data
5 consumer_key => "V4C9Cy75WRbrZTyotJP7RFVmK"
6 oauth_token => "23584791-dMIwY60V9Jhr46BKQmmaW0jEHNDQcepxW86Oyw2tQ"
7 keywords => ["paris"]
8 full_tweet => true
9 add_field => { "place" => "paris" }
10 }
11}
12output {
13 if [place] == "paris" {
14 elasticsearch {
15 index => "twitter-paris"
16 }
17 }
18}