2015年3月7日土曜日

fluentd: Install for getting httpd access log

(1) MongoDB Install

(2) fluentd install

 30 $ sudo vim /etc/☆/td-agent.conf
 32   <source>
 33     type tail
 34     format apache
 35     path /☆/httpd/access_log
 36     pos_file /☆/apache2.access_log.pos
 37     tag mongo.apache.access
 38   </source>
 39
 40   <match mongo.*.*>
 41   # plugin type
 42   type mongo
 43   # mongodb db + collection
 44   database apache
 45   collection access
 46   # mongodb host + port
 47   host localhost
 48   port ☆
 49   # interval
 50   flush_interval 10s
 51   # make sure to include the time key
 52   include_time_key true
 53   </match>


0 件のコメント:

コメントを投稿

fd-find

 $ sudo apt install fd-find $ fdfind 石