-
I want to use Vector to ingest some gzip files then use remap to parse them. We put some log files with json format into a gzip file to do the test. Here is my config:
Finally, I got error messages:
Could you help me to solve it please? Thank you so much for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @syzcch ! Looking at your error messages there, it seems like you might have compressed To verify Vector's behavior of reading individual files, I tested with:
(flog is a log generator: https://github.com/seattlerb/flog)
Running Vector with the below configuration: data_dir = "/tmp/vector"
[sources.gz_logs]
type = "file"
include = [ "/tmp/log.json.gz" ]
[transforms.parse_logs]
type = "remap"
inputs = ["gz_logs"]
source = '''
. = parse_json!(.message)
'''
[sinks.print]
type = "console"
inputs = ["parse_logs"]
encoding.codec = "json" And Vector was able to correctly read and parse the lines:
|
Beta Was this translation helpful? Give feedback.
Hi @syzcch !
Looking at your error messages there, it seems like you might have compressed
tar
archives? Vector won't read those correctly, only individual compressed files.To verify Vector's behavior of reading individual files, I tested with:
(flog is a log generator: https://github.com/seattlerb/flog)
Running Vector with the below configuration:
And Vector was abl…