Questions tagged [logging]
Computer data logging is the process of recording events in a computer program or computer system, usually with a certain scope, in order to provide an audit trail that can be used to understand the activity of the system and to diagnose problems. Be sure to include appropriate software or hardware tags in addition to this tag.
36,355
questions
0
votes
0answers
5 views
Where does log4j Socket Appender write to
I am using log4j2 to write to syslog. I am using the socket appender. I am wondering which facility does it write to? When I use Syslog appender, I can specifiy the facility but there is no option in ...
0
votes
0answers
5 views
Find Pod Count in splunk search
I have written below query to fetch the pod count for a particular application as below:
index="stream_data" sourcetype="kube:container:stream_app" | search pod="data-app-...
0
votes
0answers
10 views
How to save users log in the server in react?
I want to save users' logs to my own server. How can I do that?
And also can I get full stacktrace like development server in the production? Thanks in advance.
0
votes
0answers
8 views
Heroku how to see logs of clock process
I recently implemented a clock process in my heroku app (Python) to scrape data into a database for me every X hours. In the script, I have a line that is supposed to send me an email when the ...
0
votes
0answers
4 views
Spring batch create a new log file per batch
I need to create a new log file per each batch i.e batch 1 will have log abc1.log, batch 2 will log abc2.log ...
In one of the writers we are calling one bean which is singleton we would like the logs ...
0
votes
0answers
6 views
How to Log AdonisJS errors in a mongodb database
I'm trying to log my AdonisJS API messages to a mongodb database, but I just can't make it work.
Here is where I'm at so far.
In the app.js folder, I changed the transport to mongo as such:
transport: ...
0
votes
0answers
16 views
Nginx log full of `NULL` characters
I'm running Nginx in a Docker container, and my error log keeps filling up with NULL characters, so it looks like this:
I had Nginx and PHP containers both set to output errors to error.log. When I ...
2
votes
0answers
29 views
Combine logging and code in Java in a proper way [closed]
Just a simple question:
How to combine logging and code in a proper and readable way?
I noticed that when I write code that contains logging the readability of de code declines. Especially when I add ...
0
votes
0answers
9 views
Using Log4j2 with Android fails to load logger
Problem
I'm trying to use Log2j4 with android, but i can't get it working.
First of all my app doesn't crash, but log4j fails to initialize.
I'm using log4j2 api and core (version 2.14.1).
Android
...
0
votes
0answers
9 views
logging: rotate log file causes permission error (W10-specific?)
I'm regularly getting this kind of thing output to stderr:
--- Logging error ---
Traceback (most recent call last):
File "d:\apps\python\python3.8.5\lib\logging\handlers.py", line 70, in ...
0
votes
0answers
5 views
Application specific logs not getting generated in JBoss EAP 7.3.0
I have developed an application using Spring Boot and deployed that in JBoss EAP 7.3.0server. The application is writing the application specific logs in a separate log file (not server.log of JBoss) ...
0
votes
0answers
8 views
How to implement a generic ILoggerProvider?
Appreciation to any answers!
Recently, i'm working on a project that needs a customized ILogger implement.I've finished that Logger implement. But i'm now stucked.
In my situation,the customized ...
0
votes
0answers
13 views
How to log an async webservice call into a dll?
I created a dll (COM interop) to make a REST API call to a Webservices.
I need to use this dll, because the call will be performed into a SSIS script (async is not supported in SSIS script)
How can I ...
0
votes
0answers
18 views
How to use selenium performance log to get the traffic of all webs open in new tabs?
I have learned a similar question, but the answer does not fit my work.
I am working at getting redirectChain by selenium performance log after clicking on all the ad links in an original page.And I ...
0
votes
0answers
11 views
How can I get Byte Array data with axios (Node.js)?
I try to get byte array data through api(C language) with axios module node.js.
The api returns UINT8 array(*UINT8) and I try to post and get the result.
I tried to do console.log axios result and the ...
0
votes
0answers
18 views
Export DynamoDb metrics logs to S3 or CloudWatch
I'm trying to use DynamoDB metrics logs in an external observability tool.
To do that, I'll need to get these log data from S3 or CloudWatch log groups (not from Insights or CloudTrail).
For this ...
-2
votes
0answers
11 views
Do Windows laptops store somewhere Sys activity logs with dates? [closed]
This question came to my mind right now, when I switched my laptop on to find the user's activities. I immediately pushed the "Power" button, so, as far as I know Windows, now the laptop ...
0
votes
1answer
15 views
Log4j Unexpected Extra Logs
My log output is filled with UNEXPECTED EXTRA information I should not be seeing. I just added Log4j to a Java project at my company and this is happening.
FIle: log4j.properties
log4j.rootCategory=...
0
votes
2answers
22 views
Powershell: Create CSV list containing newest line in newest file in N number subdirs
I'm pretty green in terms of Powershell, so this presents a challenge to me:
Objective: Traverse N number of subdirs containing logs, find the newest file in each subdir, extract the last written line ...
-3
votes
0answers
11 views
What's the best way of storing in the database evidencies of certain actions in a spring rest application?
I'm working on a java/spring web application that uses rest endpoints and I need to store in the database certain evidence of user actions (e.g. approving a new expense), with pieces of information ...
-1
votes
0answers
8 views
Django: logging: Formatter how to access request.build_absolute_uri()
I am planning to use custom logging formatter in DJango. And add the url to the record object using request.build_absolute_uri()
The following is what i want to do
# SQL formatter to be used for the ...
0
votes
0answers
10 views
Manually adding StreamHandler to logger breakes IPython prompt
If I log (with the standard python logging module) from another thread inside an IPython interperter, the prompt is moving for every log that is output, like so:
In [4]: threading.Thread(target=...
0
votes
0answers
26 views
Logback writing in console but not in file
I'm trying to save my logs into a file using logback, but I've been unsucessful so far. The code I'm using seems to be working fine when deployed on our sandbox (which I believe is a Unix system) ...
0
votes
0answers
10 views
Max_result_window increase Graylog 4.0.5+d95b909
An error appears when I going to page 67.
What can be done in this case?
Type of error:
While retrieving data for this widget, the following error(s) occurred:
Elasticsearch exception [type=...
0
votes
0answers
16 views
How to get the error shows in web console using JavaScript?
I want to log all of my error that happen in my website especially on the front end. And the important thing I wanna do is to log all of the error or warning that appears on my website console (F12). ...
0
votes
3answers
33 views
Sudden pod restart of kubernetes deployment, reason?
I'v got microservices deployed on GKE, with Helm v3; all apps/helms stood nicely for months, but yesterday for some reason pods were re-created
kubectl get pods -l app=myapp
NAME ...
0
votes
1answer
23 views
How to log to a file using different third party logger in .Net Core? Third party logger may change dynamically when application starts
Developing simple application which uses Microsoft.Extensions.Logging framework to log information to file by using Log4Net or NLog or SeriLog. For that using below simple code and its working fine.
...
0
votes
0answers
12 views
Disable logging exceptions in Django (logging.raiseException = True)
Is there any equivalent to :
import logging
logging.raiseException = False
in Django's log configuration ?
0
votes
2answers
24 views
Serilog ThreadId is always output as 1
I have a ThreadId in the outputTemplate but the log always records it as 1. I have several instances of the app running at the same time into the same log and so was hoping I could separate the ...
0
votes
0answers
27 views
How can I keep a call count (detect loops) for each calling functions on the stack?
I would like to write a custom log/debug function that would, among other things, provide information about the call stack. It's quite possible to inspect the stack and find all calls that led to the ...
0
votes
0answers
8 views
Creating log files without seeing them in console. Java [duplicate]
I'm studying Java and this is my first times using logs. I´m trying to save a log file, but I don´t want to see the log messages in the console.
This is my code:
public class Test {
private final ...
0
votes
0answers
14 views
How to enable gRPC logging for akka.grpc?
Unsure if I have done the right thing. I found this link : https://doc.akka.io/docs/akka-grpc/current/client/configuration.html#debug-logging and followed the steps exactly but do not see any "...
0
votes
1answer
21 views
DateTime format search in the splunk search query
I have "YYYY-MM-DD HH:MM:SS.QQ ERROR" in my splunk logs.
Now I want to search for similar date pattern along with Status like "2021-Apr-08 23:08:23.498 ERROR" in my splunk logs and ...
0
votes
0answers
14 views
Serilog doesn't log into DB when ASP.NET MVC app hosted
Please help me with Serilog logger. I have a problem with logging into database:
when my app is running on localhost -> logger logs into local db
when my app is running on localhost -> logger ...
0
votes
0answers
15 views
Get logs from kafka and send to loki
hope you're all well during this pandemic.
I've got a kubernetes cluster running. The comunication between pods is done through kafka. It is currently logging to stdout only. No files. no kafka topic. ...
0
votes
0answers
23 views
C# Serilog how to log metrics?
I need help with serilog metrics, as if now I can log messages and log trace Id's as well, but how to log metrics using serilog, I was referring this package https://github.com/serilog-metrics/serilog-...
0
votes
1answer
17 views
Set lombok logger properties?
I have a simple Java project without any framework using maven as my project management. I have imported lombok and using its logging [@sl4j] but the log are only rendered in console.
Is there a way ...
0
votes
1answer
10 views
Logging format interpolation with multiple arguments
pylint produces the following warning:
logging-format-interpolation (W1202):
Use % formatting in logging functions and pass the % parameters as
arguments Used when a logging statement has a call form ...
0
votes
1answer
40 views
Azure Functions V3: Unable to get ILogger working with DI
We have an Azure Function v3 and would like to inject an ILogger<MyFunction> logger into our function classes via constructor. We are struggling to get it to work with Serilog as the default ...
-1
votes
0answers
13 views
Docker logs for peer node in HLF. What does it all mean?
Below are docker logs for a peer node in HLF.
What do gossip.gossip, msp.identity, gossip.discovery mean in here?
UTC [gossip.gossip] ValidateAliveMsg -> DEBU 1a5dc Fetched identity of Membership: ...
0
votes
0answers
19 views
SQL Server : select queries logging with specific SessionId
I have a problem about a custom program, it did not logging select queries and I want to add who is made it; in to the log.
I can't reach the source code so I can't made in exe side.
I have to find a ...
0
votes
0answers
10 views
Send custom logs from CodeStar app to CloudWatch
I have a CodeStar Spring Boot Java web application that is being deployed via Elastic Beanstalk. I would like to use logging in my app and I would like the logs to be automatically pushed to AWS ...
0
votes
0answers
9 views
Fluentd: Store multiple container logs in a single file(AWS S3)
I want to store multiple container logs in a single file in AWS S3.
We have multiple components of an app, lets say ui, server, engine, alert. All running as pods in AWS EKS Cluster.
I have a FluentD ...
1
vote
0answers
15 views
Writing logs based on log level in Zend Framework 3
We recently started migrating a project from Zend Framework 1 to Zend Framework 3. With Zend Framework 1, we were using Log4PHP library for application logging. With Log4PHP we are able to log the ...
0
votes
0answers
29 views
redirect third-party logs to log file - Python
I have a log set-up as below.
logging.basicConfig(filename=my_dir+'debug.log', format= message_format,
datefmt= date_strftime_format,encoding='utf-8', level=logging.DEBUG)
I also have third-party ...
-3
votes
0answers
9 views
Can you anonymise all IP addresses in AWStats, and delete previous history logs?
In AWStats, is it possible to anonymize all IP addresses, so stats are generic as possible and reduce any links to personal information? It is also possible to disable AWStats from saving history text ...
-1
votes
0answers
10 views
Is there a way to read Open Manage Server Administrator logs programmatically?
I've tried a few racadm commands like getraclog but I'm not able to see the alerts in the attached picture. Ultimately I want to run invoke-command in Powershell and remotely gather certain data out ...
0
votes
1answer
33 views
Use lazy % formatting in logging functions pylint error message
I have a python function as follows, when enabled pylint to code scan, it throws me an lazy formatting error.
def modify_response(data):
try:
response = {}
response["User_ID&...
0
votes
0answers
20 views
Unable to retrieve the value set in InheritableThreadLocal set in one logger inside an another logger object
I have a java application and I am using log4j to print the xml. I am printing my log messages with a certain context. For e.g : Message = "Hello World". Log Message : "MyContext - ...
0
votes
0answers
31 views
Compiler error when result of method is ignored/not used
I want my coworkers to not ignore result of method, f.e. in builder, when You do not build object. I have fluent api that will log message. If someone will not used final method to log, the log ...