티스토리 뷰

1. Twitter

 1) input 소스

input {  

    twitter {

        consumer_key => "CONSUMER_KEY_GOES_HERE"

        consumer_secret => "CONSUMER_SECRET_GOES_HERE"

        oauth_token => "ACCESS_TOKEN_GOES_HERE"

        oauth_token_secret => "ACCESS_TOKEN_SECRET_GOES_HERE"

        keywords => ["test","sample"]

        full_tweet => true

    }

}


 2) 참고링크

 - https://www.elastic.co/guide/en/logstash/current/plugins-inputs-twitter.html


2. Json_Line

 1) 설치

bin/logstash-plugin list json_line

./bin/logstash-plugin install logstash-codec-json_lines


 2) 소스

output {

  stdout { codec => json_lines }

}


 3) 참고링크

  - https://www.elastic.co/guide/en/logstash/current/plugins-codecs-json_lines.html#plugins-codecs-json_lines

  - https://github.com/logstash-plugins/logstash-codec-json_lines


3. RSS

 1) 설치

./logstash-plugin install logstash-input-rss


 2) 소스

input {

        rss {

                interval => 300

                url => "https://rss.itunes.apple.com/api/v1/kr/ios-apps/top-grossing/all/100/explicit.rss"

        }

}









댓글
댓글쓰기 폼
공지사항
최근에 달린 댓글
Total
14,254
Today
16
Yesterday
14
«   2018/04   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
글 보관함