Skip to content

Commit

Permalink
Update README with a better format for pattern string
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayrdrie Palmer committed Jun 19, 2018
1 parent 4a1a761 commit 5561af3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/inputs/logparser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ You must capture at least one field per line.
- ts-"CUSTOM"

CUSTOM time layouts must be within quotes and be the representation of the
"reference time", which is `Mon Jan 2 15:04:05 -0700 MST 2006`. Both a comma
and a period are supported as a number separator.
EX: timestamp:ts-"2006-01-02 15:04:05.000" or timestamp:ts-"2006-01-02 15:04:05,000"
"reference time", which is `Mon Jan 2 15:04:05 -0700 MST 2006`.
To match a comma decimal point you can use a period. For example `%{TIMESTAMP:timestamp:ts-"2006-01-02 15:04:05.000"}` can be used to match `"2018-01-02 15:04:05,000"`
To match a comma decimal point you can use a period in the pattern string.
See https://golang.org/pkg/time/#Parse for more details.

Telegraf has many of its own [built-in patterns](./grok/patterns/influx-patterns),
Expand Down

0 comments on commit 5561af3

Please sign in to comment.