all: caddy - dump logs on stderr

This commit is contained in:
Adithya 2024-09-15 16:58:06 +05:30
parent f88b9c41a9
commit 63f58c427e
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 2 additions and 29 deletions

View file

@ -1,11 +1,7 @@
{
logFormat = fileName: ''
output file /var/log/caddy/${fileName}.log {
roll_size 100MiB
roll_keep 5
roll_keep_for 100d
}
output stderr
format json
level INFO
level DEBUG
'';
}

View file

@ -15,29 +15,6 @@
];
positions = { filename = "/tmp/promtail-positions.yaml"; };
scrape_configs = [
{
job_name = "caddy";
static_configs = [
{
targets = [ "localhost" ];
labels = {
job = "caddy";
"__path__" = "/var/log/caddy/*log";
agent = "caddy-promtail";
};
}
];
pipeline_stages = [
{
json = {
expressions = { duration = "duration"; status = "status"; };
};
}
{
labels = { duration = ""; status = ""; };
}
];
}
{
job_name = "journal";
journal = {