Skip to content

Commit 5522ff5

Browse files
committed
update config.toml
1 parent 3ec0d56 commit 5522ff5

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

cmd/funnel/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
)
1212

1313
// TODO: add http stats endpoint conditionally
14-
15-
// todo: rectify comment on flushing about targts/files
1614
const (
1715
AppName = "funnel"
1816
)

config.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ max_lines = 100000 # hundred thousand
1414
# Max no. of bytes written to a file beyond which it will rotate
1515
max_file_size_bytes = 5000000 # 5MB
1616

17-
# The time interval after which the buffer will be flushed to disk.
18-
# This is only for file output. If other targets need a flush interval, you need to specify it separately. Look at the [target] section for examples.
17+
# The time interval after which the buffer will be flushed to the output target.
18+
# For some targets, flushing doesn't make sense. It becomes a no-op then.
19+
# Other targets have in-built flush frequency. It can be configured in that section.
1920
[flushing]
2021
time_interval_secs = 5
2122

@@ -64,7 +65,7 @@ prepend_value = ""
6465
# name = "redis"
6566
# host = "localhost:6379"
6667
# password = "" # If no password is set, keep it blank
67-
# channel = "test"
68+
# channel = "test" # Specify the channel to publish to
6869

6970
# ElasticSearch output example
7071
# P.S. Since ES takes json objects, log lines have to be in json.

0 commit comments

Comments
 (0)