Have a file
input to periodically check for files
#2559
-
I'm trying to build a configuration that among other things should periodically check the specified path for a file, but I'm lost on how to implement this. I've tried to mix it up with a input:
sequence:
inputs:
- generate:
mapping: |
root = {
"auto": true
}
interval: 10s
- file:
paths: ["./*.json"]
scanner:
lines: {}
delete_on_finish: false
ouput:
stdout: {} Using a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @antipopp 👋 You can wrap the input in a |
Beta Was this translation helpful? Give feedback.
Hey @antipopp 👋 You can wrap the input in a
read_until
input withcheck: false
andrestart_input: true
. If you need to sleep a bit between runs, you can keep thesequence
and wrap that in theread_until
input, but you’ll have to setcount: 1
undergenerate
and attach asleep
processor followed by amapping: root = deleted()
to get rid of the message thatgenerate
creates.