@@ -69,20 +69,24 @@ You can now send logs from your app(s) to `tinysyslog:5140`.
69
69
## Configuration
70
70
```
71
71
Usage of ./tinysyslog:
72
- --address string IP and port to listen on. (default "127.0.0.1:5140")
73
- --filter string Filter to filter logs with. Valid filters are: null and regex. Null doesn't do any filtering. (default "null")
74
- --filter-regex string Regex to filter with.
75
- --log-file string The log file to write to. 'stdout' means log to stdout and 'stderr' means log to stderr. (default "stdout")
76
- --log-format string The log format. Valid format values are: text, json. (default "text")
77
- --log-level string The granularity of log outputs. Valid level names are: debug, info, warning, error and critical. (default "info")
78
- --mutator string Mutator type to use. Valid mutators are: text, json. (default "text")
79
- --sink string Sink to save syslogs to. Valid sinks are: console and filesystem. (default "console")
80
- --sink-console-output string Console to output too. Valid outputs are: stdout, stderr. (default "stdout")
81
- --sink-filesystem-filename string File to write incoming logs to. (default "syslog.log")
82
- --sink-filesystem-max-age int Maximum age (in days) before a log is deleted. (default 30)
83
- --sink-filesystem-max-backups int Maximum backups to keep. (default 10)
84
- --sink-filesystem-max-size int Maximum log size (in megabytes) before it's rotated. (default 100)
85
- --socket-type string Type of socket to use, TCP or UDP. If no type is specified, both are used.
72
+ --address string IP and port to listen on. (default "127.0.0.1:5140")
73
+ --filter string Filter to filter logs with. Valid filters are: null and regex. Null doesn't do any filtering. (default "null")
74
+ --filter-grok-fields strings Grok fields to keep.
75
+ --filter-grok-pattern string Grok pattern to filter with.
76
+ --filter-regex string Regex to filter with.
77
+ --log-file string The log file to write to. 'stdout' means log to stdout and 'stderr' means log to stderr. (default "stdout")
78
+ --log-format string The log format. Valid format values are: text, json. (default "text")
79
+ --log-level string The granularity of log outputs. Valid level names are: debug, info, warning, error and critical. (default "info")
80
+ --mutator string Mutator type to use. Valid mutators are: text, json. (default "text")
81
+ --sink-console-output string Console to output too. Valid outputs are: stdout, stderr. (default "stdout")
82
+ --sink-elasticsearch-address string Elasticsearch server address. (default "http://127.0.0.1:9200")
83
+ --sink-elasticsearch-index-name string Elasticsearch index name. (default "tinysyslog")
84
+ --sink-filesystem-filename string File to write incoming logs to. (default "syslog.log")
85
+ --sink-filesystem-max-age int Maximum age (in days) before a log is deleted. (default 30)
86
+ --sink-filesystem-max-backups int Maximum backups to keep. (default 10)
87
+ --sink-filesystem-max-size int Maximum log size (in megabytes) before it's rotated. (default 100)
88
+ --sinks strings Sinks to save syslogs to. Valid sinks are: console, elasticsearch and filesystem. (default [console])
89
+ --socket-type string Type of socket to use, TCP or UDP. If no type is specified, both are used.
86
90
```
87
91
88
92
## Benchmarks
0 commit comments