Kouhei Sutou
null+****@clear*****
Mon Nov 23 12:26:33 JST 2015
Kouhei Sutou 2015-11-23 12:26:33 +0900 (Mon, 23 Nov 2015) New Revision: e17812065c0f8e7795f75901c3e48df07cca6e4a https://github.com/groonga/packages.groonga.org/commit/e17812065c0f8e7795f75901c3e48df07cca6e4a Message: Accept logs from forward Modified files: ansible/files/fluentd/fluentd.conf ansible/playbook.yml Modified: ansible/files/fluentd/fluentd.conf (+12 -0) =================================================================== --- ansible/files/fluentd/fluentd.conf 2015-11-23 12:02:29 +0900 (1cca523) +++ ansible/files/fluentd/fluentd.conf 2015-11-23 12:26:33 +0900 (017aa2a) @@ -5,6 +5,11 @@ </source> <source> + type forward + bind 127.0.0.1 +</source> + +<source> type tail path /var/log/apache2/access.log pos_file /var/log/td-agent/apache2_access.pos @@ -12,6 +17,13 @@ format apache2 </source> +<match raw.apache.log.**.access> + type parser + remove_prefix raw + format apache2 + key_name message +</match> + <filter apache.log.**> type record_transformer Modified: ansible/playbook.yml (+1 -0) =================================================================== --- ansible/playbook.yml 2015-11-23 12:02:29 +0900 (986584e) +++ ansible/playbook.yml 2015-11-23 12:26:33 +0900 (2e3740f) @@ -168,6 +168,7 @@ with_items: - fluent-plugin-anonymizer - fluent-plugin-groonga + - fluent-plugin-parser notify: - Restart Fluentd - name: Add "td-agent" user to "adm" groups -------------- next part -------------- HTML����������������������������...下載