Closed cornebester closed 1 month ago
@cornebester I think you are using the wrong input in your sink. It should be inputs: [parse_logs]
.
@jszwedko great thanks. Sometimes one just need an extra pair of eyes! Sorry about this
@jszwedko great thanks. Sometimes one just need an extra pair of eyes! Sorry about this
No worries! I've frequently made the same mistaken 🙂
A note for the community
Problem
When schema: log_namespace: true the file metadata is unavailable on % for remap. (Want to add the file path to the emitted event) Log files contains well structured json entries with timestamp key
Configuration
Version
vector 0.41.1 (x86_64-pc-windows-msvc 745babd 2024-09-11 14:55:36.802851761)
Debug Output
Example Data
{"timestamp": "2024-09-23T09:25:56.235Z", "level": "INFO", "name": "main", "message": "LOG level set to: INFO"} {"timestamp": "2024-09-23T09:25:56.236Z", "level": "INFO", "name": "main", "message": "App starting"}
Additional Context
Windows machine
References
No response