Skip to Main Content
Logging in Action
book

Logging in Action

by Phil Wilkins
April 2022
Intermediate to advanced content levelIntermediate to advanced
392 pages
12h 2m
English
Manning Publications
Content preview from Logging in Action

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices Security in Action

Microservices Security in Action

Prabath Siriwardena, Wajjakkara Kankanamge Anthony Nuwan Dias
Logging and Log Management

Logging and Log Management

Kevin Schmidt, Chris Phillips, Anton Chuvakin
Terraform in Action

Terraform in Action

Scott Winkler

Publisher Resources

ISBN: 9781617298356Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link