Skip to content

Commit

Permalink
Use v0.14 style config in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
okkez committed Dec 9, 2016
1 parent 8ea8817 commit 5839bcc
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,18 @@ $ sudo td-agent-gem install fluent-plugin-geoip
</record>

# Settings for tag
remove_tag_prefix access.
tag geoip.${tag}
tag geoip.${tag[1]}

# To avoid get stacktrace error with `[null, null]` array for elasticsearch.
skip_adding_null_record true

# Set log_level for fluentd-v0.10.43 or earlier (default: warn)
log_level info

# Set buffering time (default: 0s)
flush_interval 1s
<buffer tag>
# Set buffering time (default: 0s)
flush_interval 1s
</buffer>
</match>
```

Expand All @@ -152,8 +153,7 @@ $ sudo td-agent-gem install fluent-plugin-geoip
user1_city ${city["user1_host"]}
user2_city ${city["user2_host"]}
</record>
remove_tag_prefix access.
tag geoip.${tag}
tag geoip.${tag[1]}
</match>
```

Expand All @@ -180,8 +180,7 @@ It is a sample to get friendly geo point recdords for elasticsearch with Yajl (J
# ex. [-122.05740356445312, 37.4192008972168]
location_array '[${longitude["host"]},${latitude["host"]}]'
</record>
remove_tag_prefix access.
tag geoip.${tag}
tag geoip.${tag[1]}
# To avoid get stacktrace error with `[null, null]` array for elasticsearch.
skip_adding_null_record true
Expand Down Expand Up @@ -248,8 +247,7 @@ Note that filter version of geoip plugin does not have handling tag feature.
lon ${longitude["host"]}
country ${country_code["host"]}
</record>
remove_tag_prefix test.
tag debug.${tag}
tag debug.${tag[1]}
</store>
</match>

Expand Down

0 comments on commit 5839bcc

Please sign in to comment.