aboutsummaryrefslogtreecommitdiff
path: root/testdata/haminer.conf
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-01-04 16:07:58 +0700
committerShulhan <ms@kilabit.info>2019-01-04 16:07:58 +0700
commitba7bb17a36b5611ecd2a22c1d7393343c44cc8d3 (patch)
tree348209deb31540f88a743fad69b3d789cdf5db81 /testdata/haminer.conf
parenta5d1c2878a207b4fdc9203134df17539970f10b8 (diff)
downloadhaminer-ba7bb17a36b5611ecd2a22c1d7393343c44cc8d3.tar.xz
haminer: change buffered mode from max size to time interval
Previously, we forward the logs only if total collected logs in buffer is greater or equal to 10. This commit change the model into using time interval, where the logs will be send every N seconds (default to 15 seconds).
Diffstat (limited to 'testdata/haminer.conf')
-rw-r--r--testdata/haminer.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/testdata/haminer.conf b/testdata/haminer.conf
index 4e3bf5b..6f5b84f 100644
--- a/testdata/haminer.conf
+++ b/testdata/haminer.conf
@@ -3,8 +3,11 @@ listen = 0.0.0.0:8080
accept_backend = ,a , b,
capture_request_header = , host, referrer,
influxdb_api_write = http://127.0.0.1:8086/write
+forward_interval = 20s
[preprocess "tag"]
+# a comment
http_url = /[0-9]+-\\w+-\\w+-\\w+-\\w+-\\w+ => /-
+
http_url = /\\w+-\\w+-\\w+-\\w+-\\w+ => /-
http_url = /[0-9]+ => /-