How to enable Performance logger in HCL Commerce 9.1 - websphere

I want to generate trace for performance log but I don't find where enable the trace.
Checking this documentation page https://help.hcltechsw.com/commerce/9.1.0/admin/refs/rlsperflog_dup.html it's mention that we need to use the following string: com.ibm.commerce.performance=fine.
In Logging and Tracing settings we don't have this class path to enable finest log.
I tried to perform some run command in ts-app like:
run set-dynamic-trace-specification com.ibm.commerce.performance=fine
run set-server-property com.ibm.commerce.performance fine
Keep not seeing the trace file in: WAS_profiledir/logs/performanceTrace.json.
Some tip ?
Best Regards

Document found:
https://help.hcltechsw.com/commerce/9.1.0/admin/tasks/tlslogging_txn.html
Basically, it's activated by PMT logs.

Related

Best way to concatenate/collapse stacktraces in logs

My goal is to include my stacktrace and log message into a single log message for my Spring Boot applications. The problem I'm running into is each line of the stacktrace is a separate log message. I want to be able to search my logs for a log level of ERROR and find the log message with the stacktrace. I've found two solutions but not sure which to use.
I can use Logback to put them all in one line but would like to keep the new lines for a pretty format. Also the guide I found might override defaults that I want to keep. https://fabianlee.org/2018/03/09/java-collapsing-multiline-stack-traces-into-a-single-log-event-using-spring-backed-by-logback-or-log4j2/
I could also use ECS and concatenate it there, but it could affect other logs (though I think we only have Java apps). https://docs.aws.amazon.com/AmazonECS/latest/developerguide/firelens-concatanate-multiline.html
Which would be the best way to do it? Also is there a better way to do it in Spring compared to the guide that I found?

How to change logger level (warning, info, debug) for Idempiere logs

I have few debugs with info in the java class configured in Idempiere plugin. But after execution of that class on that server, I am getting warning log, but not info log, inside idempiere logs.
I tried google but couldn't find anything related to it. Could some one help in "How to change logger level (warning, info, debug) for Idempiere logs"
You could use the iDempiere Monitor
http://127.0.0.0:8080/idempiereMonitor
You can access with your System User credentials. Then go to the line:
Trace Log Level
And select one of these:
OFF
SEVERE
WARNING
INFO
CONFIG
FINE
FINER
FINEST
ALL
This will regenerate the last log file and build the new ones with this parameter.

Logging CockroachDB queries

I have an application running CockroachDB on AWS and want to log all of the queries it executes. However, I can’t find anything in my cluster’s logs that seems to contain the queries. I tried grepping through them for my application’s SELECT statements but can’t find them.
Is there a way to enable query logging?
The other answer is outdated. There are two mechanisms:
for regular inspection/troubleshooting, one should use SQL statement execution logging as documented here: https://www.cockroachlabs.com/docs/stable/query-behavior-troubleshooting.html#cluster-wide-execution-logs
for access audits (when required for e.g. regulation) use audit logging: https://www.cockroachlabs.com/docs/stable/sql-audit-logging.html
When starting a node with cockroach start, include the --vmodule=executor=2 flag to log all SQL queries. For example:
cockroach start --background --vmodule=executor=2
You can access the logs then from the log files stored in cockroach-data/logs
If you’re curious about logging queries that run “too long”, set the env var COCKROACH_TRACE_SQL to a duration to log all queries longer than that duration.
One can also activate this logging after starting the server by accessing the URL http://[admin UI URL]/debug/vmodule/executor=2 using the same host/port as the admin UI.

How to view jmeter summary in stdout while running in nongui mode?

I'm trying to run a robustness test using jmeter through Jenkins and need to view the summary of the test in progress. When running the test locally using GUI mode, I can see the an agregate report of my test as it's running, is the same thing possible while I'm running in a nongui mode? I tried to change the summariser within properties file:
**#----------------------------------------------------------
# Summariser - Generate Summary Results - configuration (mainly applies to non-GUI mode)
#----------------------------------------------------------
# Define the following property to automatically start a summariser with that name
# (applies to non-GUI mode only)
summariser.name=summary
#
# interval between summaries (in seconds) default 3 minutes
summariser.interval=180
#
# Write messages to log file
summariser.log=true
#
# Write messages to System.out
summariser.out=true**
and also enabled logging information but I still don't see any summary. Even if I can get a constant logger within stdout then I can atleast view this within the console output from Jenkins, but currently I am not able to produce this. Does anyone know how to configure this?
With JMeter 2.11, summariser is enabled by default in Non GUI mode, so you should have what you need.
Although what you show seems right except for :
summariser.out=true**
Which should be:
summariser.out=true
Console status logger plugin can solve your task. See here:http://jmeter-plugins.org/wiki/ConsoleStatusLogger/

Diagnostic Monitor Trace Listener

I would like to know if it is possible to modify the way the Trace is recording trace information ?
Trace.Listeners.Add(new DiagnosticMonitorTraceListener());
Trace.TraceInformation("OnStart");
I would like to be able to use the current WADLogsTable and adding one or more custom columns to the table.
Right now the default table created by the DiagnosticMonitorConfiguration looks like that:
PartitionKey|RowKey|Timestamp|EventTickCount|DeploymentID|Role|RoleInstance|Level|EventID|Pid|TiD|Message|
I would like to add at the end some custom columns like :
PartitionKey|RowKey|Timestamp|EventTickCount|DeploymentID|Role|RoleInstance|Level|EventID|Pid|TiD|Message|Custom1|Custom2
So every time I trace something I am able to add data for those two custom columns
Thanks
I don't think you'll be able to do this. While Windows Azure Diagnostics is quite extensible, you'll not be able to modify schema for trace logging. I would recommend looking into implementing custom diagnostics. You may find this link useful for this: http://convective.wordpress.com/2009/12/08/custom-diagnostics-in-windows-azure/.
As Gaurav mentioned, this is not doable with default implementation of Trace.
I'd recommend using something like Log4Net and implementing a custom Table Storage appender. I've done this on a number of projects and it works wonderfully. It (Log4Net) can also consume regular Trace messages and log them into its storage

Resources