22 Apr 2023 12:33 AM
Hello
I need to do a demo with EasyTravel but I cant see available "View Trace"
I tried with https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/log-monitoring-config...
What can I do ?
Solved! Go to Solution.
24 Apr 2023 08:43 AM
Hi,
Did you do the EasyTravel installation exactly according to the documentation? Remember that after installing OA on ET you need to do a reboot and run the traffic generator. These steps from the documentation you share are unnecessary with ET.
Then everything should start working.
Radek
08 Aug 2023 10:55 PM - edited 10 Aug 2023 06:01 PM
Enable OneAgent features required for log enrichment:
Java - Trace/span context enrichment for logs [Opt-In]
Java - Trace/span context enrichment for unstructured logs [Opt-In]
Metadata context enrichment for logs [Opt-In]
Nginx - Trace/span context enrichment for logs [Opt-In]
Create a log storage configuration rule to include all Easy Travel logs by wildcard on the log directory:
Log source: <Install directory>/easyTravel/log/*
Enable json logs for Java:
Modify <directory>/resources/easyTravelConfig.properties (or easyTravelLocal.properties) and add -DuseJSONLogging=true.
Like this:
config.frontendJavaopts=-Xmx160m,-DuseJSONLogging=true
config.angularFrontendJavaopts=-Xmx160m,-DuseJSONLogging=true
config.backendJavaopts=-Xmx160m,-DentityExpansionLimit=500000,-DuseJSONLogging=true
config.thirdpartyJavaopts=-Xmx32m,-DuseJSONLogging=true
For Nginx, <User install directory>/easyTravel/log/nginx_error.log on if the log enrichment is being applied:
2023/08/08 21:14:47 [error] 75541#0: *121958361 open() "nginx-eT-1.6.2-64/html/50x.html" failed (13: Permission denied), client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "localhost:8079", dt.trace_id: 7053e851514c0a43dc0563c93ce9a734, dt.span_id: 1f1f1ac9dd11a749, dt.trace_sampled: true, dt.entity.host: HOST-2D2A393C74489927, dt.entity.host_group: HOST_GROUP-BC2BB2C3AD0173AE, dt.entity.process_group_instance: PROCESS_GROUP_INSTANCE-1F10FF26D20EB7C8, dt.host_group.id: easytravel
In Logs, search by trace_id (trace_id="7053e851514c0a43dc0563c93ce9a734") to locate the log and verify "View trace" is available. On Grail, you can do isNotNull(trace_id) query.