Skip to content

Commit

Permalink
Use @type
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 24, 2016
1 parent 014bba6 commit 04331e9
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions sample/command.conf
@@ -1,13 +1,13 @@
<source>
type groonga
@type groonga
protocol gqtp

real_host 127.0.0.1
real_port 20041
</source>

<match groonga.command.*>
type groonga
@type groonga
protocol command
database /tmp/groonga/db
flush_interval 1
Expand Down
4 changes: 2 additions & 2 deletions sample/gqtp.conf
@@ -1,13 +1,13 @@
<source>
type groonga
@type groonga
protocol gqtp

real_host 127.0.0.1
real_port 20043
</source>

<match groonga.command.*>
type groonga
@type groonga
protocol gqtp
host 127.0.0.1
port 30043
Expand Down
4 changes: 2 additions & 2 deletions sample/http.conf
@@ -1,13 +1,13 @@
<source>
type groonga
@type groonga
protocol http

real_host 127.0.0.1
real_port 20041
</source>

<match groonga.command.*>
type groonga
@type groonga
protocol http
host 127.0.0.1
port 30041
Expand Down
10 changes: 5 additions & 5 deletions sample/store-apache.conf
@@ -1,9 +1,9 @@
<source>
type forward
@type forward
</source>

<source>
type tail
@type tail
path /var/log/apache2/access.log
pos_file /tmp/apache_access.pos
tag apache.raw.log.apache.access
Expand All @@ -12,7 +12,7 @@
</source>

<match apache.**>
type record_reformer
@type record_reformer
enable_ruby false

tag ${tag_suffix[1]}
Expand All @@ -23,7 +23,7 @@
</match>

<match raw.log.**>
type record_reformer
@type record_reformer
enable_ruby false

tag ${tag_suffix[1]}
Expand All @@ -36,7 +36,7 @@
</match>

<match log.**>
type groonga
@type groonga
store_table Logs

protocol http
Expand Down
11 changes: 6 additions & 5 deletions sample/store-syslog.conf
Expand Up @@ -5,19 +5,20 @@
# * fluent-plugin-groonga

<source>
type forward
@type forward
</source>

<source>
type tail
@type tail
path /var/log/messages
pos_file /var/log/td-agent/messages.pos
tag "raw.messages.log.#{Socket.gethostname}"
read_from_head true
format none
</source>

<match raw.*.log.**>
type forest
@type forest
subtype parser

<template>
Expand All @@ -31,7 +32,7 @@
</match>

<match *.log.*.**>
type record_reformer
@type record_reformer
enable_ruby false

tag ${tag_parts[1]}
Expand All @@ -44,7 +45,7 @@
</match>

<match log>
type groonga
@type groonga
store_table Logs

protocol http
Expand Down
4 changes: 2 additions & 2 deletions sample/store.conf
@@ -1,9 +1,9 @@
<source>
type forward
@type forward
</source>

<match log.*>
type groonga
@type groonga
store_table Logs

protocol http
Expand Down

0 comments on commit 04331e9

Please sign in to comment.