AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Could not run logtail or save output2/3/2024 ![]() clients/pkg/promtail/targets/file/decompresser_test.go. However, because tar will add its metadata at the beggining of theĬompressed file, the first parsed line will contains metadata together with tar.gz: Data will be decompressed exactly as the. bz2: Data will be decompressed with the native Bzip2 Golang pkg ( pkg/compress/bzip2) z: Data will be decompressed with the native Zlib Golang pkg ( pkg/compress/zlib) gz: Data will be decompressed with the native Gunzip Golang pkg ( pkg/compress/gzip) It fetches the following 4096 bytes, and so on. After processing this block and pushing the data to Loki, i.e: it first fetches a block of 4096 bytesįrom the compressed file and process it. The data is decompressed in blocks of 4096 bytes.The max expected log line is 2MB bytes within the compressed file.It relies on the \n character to separate the data into different log lines.The Promtail configuration below examplifies how to to set up decompression: server:įilename: /var/lib/promtail/positions.yaml Lazily decompress the compressed file and push the parsed data to Loki. ![]() If a discovered target has decompression configured, Promtail will Promtail now has native support for ingesting compressed files. Refer to the docs forĬonfiguring Promtail for more details. Relabel_configs allows for fine-grained control of what to ingest, what toĭrop, and the final metadata to attach to the log line. Just like Prometheus, promtail is configured using a scrape_configs stanza. Kubernetes API server while static usually covers all other use cases. kubernetes service discovery fetches required labels from the This limitation is due to the fact that Promtail is deployed as aĭaemon to every local machine and, as such, does not discover label from other Service discovery mechanism from Prometheus,Īlthough it currently only supports static and kubernetes serviceĭiscovery. Specifically, this means discoveringĪpplications emitting log lines to files that need to be monitored. Log file discoveryīefore Promtail can ship any data from log files to Loki, it needs to find out Systemd journal (on AMD64 machines only). Promtail is an agent which ships the contents of local logs to a private Grafana Lokiĭeployed to every machine that has applications needed to be monitored.Ĭurrently, Promtail can tail logs from two sources: local log files and the
0 Comments
Read More
Leave a Reply. |