41,728 questions
0
votes
0
answers
18
views
Promtail Configuration replace expressions in the pipeline stages are not working
My Promtail configuration where the replace expressions in the pipeline stages are not working as expected.
I’m trying to replace certain keywords in logs from the testing namespace:
elevenlabs to ...
-1
votes
0
answers
46
views
How to filter logs by VM name (instance_name) in GCP Log Explorer UI instead of instance_id [closed]
I’m using Google Cloud Logging (Log Explorer) with Ops Agent installed on all VMs.
But the issue is:
In the Log Explorer UI, inside the VM id dropdown filter I can only search or filter by the ...
1
vote
1
answer
47
views
How to use identity attribute of io.quarkus.scheduler.Scheduled in log messages
I have a Java Quarkus application which is using JBoss for logging.
I am using a scheduled job via io.quarkus.scheduler.Scheduled like so:
private static final Logger LOGGER = Logger.getLogger(...
1
vote
0
answers
19
views
How to capture IAM user identity in Aurora MySQL audit logs when connecting through AWS TEAM elevated access?
I’m using TEAM elevated access for AWS in my organization to temporarily access an Aurora MySQL cluster.
TEAM provides database access through a tunneled MySQL session using a generic database ...
0
votes
1
answer
98
views
Concurrent access logger for C++ [closed]
I am currently working on the modernization of a quite large application analyzing large amount of text data. The application is made of executables, launching other executables and so forth. Some of ...
-1
votes
1
answer
75
views
Summing log and getting a total [closed]
I’m new to programming. I have a simple push up counter that creates a log to record push ups completed. I cannot figure out a way to modify the program in order to add a fourth option to sum the log ...
0
votes
0
answers
43
views
How to set up multi-thread logging to different loggers using QueueListener and QueueHandler
I have a Python application that runs multiple tasks in parallel using ThreadPoolExecutor. I want all threads to log safely without race conditions. I also need two loggers:
Console logger (prints ...
0
votes
1
answer
98
views
Macro-free, MSVC-compatible std::format with check for extra argument
I use std::format in my logging, and it largely works great. However, std::format ignores extra arguments which I do not like. E.g., std::format("x = {}", x, y) compiles, so I want a ...
3
votes
0
answers
91
views
MLflow doesn’t log or show model artifacts after training run
I’m working on a machine learning project using MLflow for experiment tracking (on macOS, Python 3.12, scikit-learn, and DagsHub as the tracking server). The experiment runs successfully — I see the ...
0
votes
0
answers
41
views
How to force drain3 to keep log event defining parameter as a static?
I am trying to parse log lines for log anomaly detection, but two log lines are too similar for the parser to keep them apart:
[Something] VM Started
[Something] VM Paused
it parses it to VM <*>...
1
vote
0
answers
44
views
Serilog not logging after first request in ASP.NET Core Web API running as Windows service
I've been unable to figure this one out and am wondering if anyone has any ideas. This is an ASP.NET Core Web API running as a Windows service.
It will log to a file at the absolute path I specify for ...
0
votes
1
answer
68
views
Will file logging race conditions in multi-process Flask app crash the Python script?
I have a Flask application running on Gunicorn with 2 workers and 2 threads each (4 concurrent execution contexts). My custom logging function writes to a file without any process-level locking:
def ...
0
votes
0
answers
115
views
structlog enforce Wrapped logger type with mypy
I wanted to override the structlog logger for the whole application, by doing this:
import enum
from collections.abc import Iterable
import structlog
from structlog.typing import Processor
from ...
0
votes
0
answers
78
views
Custom exception is logged twice by Laravel
I am developing a Laravel 12 API app with Sanctum authentication (SPA). I am facing a behavior in which Laravel is logging the custom exception twice.
The custom exception declaration is as follows:
...
0
votes
0
answers
49
views
Can fluentbit write or pub to redis on output?
I'd like to ingest server access logs via Fluentbit and then do some modification using the filters and output the results to Redis. All on the same server.
Is there a Redis output plugin or would ...
1
vote
1
answer
165
views
In golang slog, how can I add attributes to every log where the value is dynamically calculated?
In principle I want to use slog to produce JSON that contains some specific JSON fields (severity,message, and timestamp). I know I can use ReplaceAttr in HandlerOptions to modify the existing log ...
1
vote
0
answers
77
views
How to customize timestamp in pattern formatter of jboss/wildfly logging in microseconds
As per official docs: WILDFLY logging, default is milliseconds. How can I do it for microseconds basically using any elytron or writing a custom script is the only option ?
Tried some elytron command ...
0
votes
0
answers
74
views
How to get Information log messages to appear in Azure Application Insights from Azure Function?
I have an Azure Function (timer triggered) that doesn't seem to be writing information log messages into Application Insights. When I use LogError/Warning/Critical it works, but LogInformation does ...
-1
votes
1
answer
66
views
Logging in request-response cycle and outside it
Imagine there is a code like that:
app.py
import logging
from contextvars import ContextVar, Token
from typing import Any
from uuid import uuid4
from fastapi.requests import Request
from starlette....
4
votes
0
answers
231
views
How to configure Grafana Alloy to set Loki tenant dynamically from log labels?
I’m running a multi-tenant Loki setup and sending logs through Grafana Alloy.
I need Alloy to set the X-Scope-OrgID header dynamically so that each log stream is stored under the correct tenant. ...
0
votes
1
answer
87
views
Change module name displayed by Rust log macros to be from calling code for auxiliary functions
My goal
I'm trying to make my actix-web code more readable and came up with the idea that I want to extend Result with methods that transform errors into actix specific ones with status code etc. (so ...
0
votes
0
answers
737
views
How to save full Codex CLI `exec` session output as JSON?
I’m running OpenAI’s Codex CLI locally and using it in non-interactive mode, e.g.:
codex exec --full-auto "update CHANGELOG for next release"
I know Codex stores per-session logs as JSONL ...
0
votes
0
answers
128
views
Python logging MemoryHandler leaks memory?
In a main.py file I have following code:
import time
from v1 import log, ServiceLogger
from logging.handlers import MemoryHandler
class Service:
h = MemoryHandler(1000)
id = None
log = ...
0
votes
0
answers
44
views
How to Customize Apache NiFi 2.4.0 API Logging to Include Custom Attributes?
I'm using Apache NiFi 2.4.0 and want to extend the default HTTP request logging (nifi-request.log) to include a custom attribute called logType with values like DATA_ACCESS, DATA_EXPORT, or ...
1
vote
1
answer
116
views
Using ILogger and Message Templates how does NLog decide date/time format for output?
As part of converting a custom logging solution to ILogger using NLog to output the data, I'm looking at how the "${message}" is generated.
I know for most types, the ToString is used to ...