Skip to content

Commit 8748289

Browse files
committed
document time machine option
1 parent eb095e8 commit 8748289

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crowdsec-docs/docs/log_processor/data_sources/introduction.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ The expression must return:
5656

5757
If the expression returns an error or an invalid type, the event will not be modified before sending it to the parsers.
5858

59+
### `use_time_machine`
60+
61+
By default, when reading logs in real-time, crowdsec will use the time at which the log was read as the log timestamp instead of extracting it from the log itself.
62+
63+
Setting this option to `true` will force crowdsec to use the timestamp from the log as the time of the event.
64+
65+
It is mandatory to set this if your application buffers logs before writting them (for example, IIS when writing to a log file, or logs written to S3 from almost any AWS service).<br/>
66+
If not set, then crowdsec will think all logs happened at once, which can lead to some false positive detections.
67+
5968
### `labels`
6069

6170
A map of labels to add to the event.

0 commit comments

Comments
 (0)