khalil
12/09/2025, 2:48 PMpipeline:
inputs:
- name: tail
path: path/to/files/*, path/to/files/*/*, path/to/files/*/*/*
exclude_path: '*.log.0,*.log.1,*.log.2,*.log.3,*.log.4,*.log.5
tag_regex: (path/to/files/*|path/to/files/*/*|path/to/files/*/*/*)(?<original_path>.*)
tag: tail:<original_path>
read_from_head: true
skip_long_lines: true
ignore_older: 1d
db: offsets.db
db.locking: true
inotify_watcher: false
mem_buf_limit: 256MB
filters:
- name: lua
match: tail:*
script: compute_target_path.lua
call: compute_target_path
- name: rewrite_tag
match: tail:*
rule: $target_path ^(.*)$ $1 false
outputs:
- name: file
match: '*'
path: output/path
mkdir: true
format: template
template: '{log}'Pat
12/09/2025, 3:32 PMread_from_head with db which is not correct. db behaves as read_from_head the first time it sees the file, otherwise it starts from wherever it got up to in the file.
Why are you just writing from one file to another, and just including the same lines in each with no extra data? It looks like all you do is adjust the output path but feels like there are easier ways to do that...khalil
12/09/2025, 4:04 PMPat
12/09/2025, 4:14 PMPat
12/09/2025, 4:14 PMPat
12/09/2025, 4:15 PMkhalil
12/10/2025, 12:49 PMlecaros
12/22/2025, 8:49 PM