Appendix B. Processing times and dates, regular expressions, and other configuration values

B.1 Expressing relative time

Some configuration attributes of Fluentd require us to express time in a relative manner, (i.e., how long from now). Such values in a readable form are best done using simple integers and time types—seconds, minutes, and hours. The following table shows how this is done in Fluentd.

Interval

Character

Examples

Seconds

s

10s 10 seconds

0.1s 100ms

Minutes

m

1m 1 minute

0.25m 15 seconds

Hours

h

24h 24 hours

0.25h 15 minutes

Days

d

1d 1 day

0.5d 12 hours

B.2 Expressing dates and times

The date representation for input and output is driven by how Ruby can parse custom ...

Get Logging in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.