Filebeat TTL value: is it seconds? milliseconds?

Is the "ttl" value in seconds or milliseconds?
https://www.elastic.co/guide/en/beats/filebeat/master/logstash-output.html#_literal_ttl_literal

The documentation does not say anything about it.

In Beats, all the time-related configuration options allow to specify the desired unit, by prefixing ns, us, ms, s, m or h.

So you can have:

ttl: 1m

or

ttl: 500ms

See Config File Data Types # Duration

Does it default to seconds though?

Yes, it defaults to seconds

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.