cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connecting Log data to traces in EasyTravel

gfragoso_babel
Participant

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 ?

 

 

 

2 REPLIES 2

radek_jasinski
DynaMight Guru
DynaMight Guru

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. 

https://community.dynatrace.com/t5/Start-with-Dynatrace/easyTravel-Documentation-and-Download/td-p/1...

Then everything should start working.

Radek

Have a nice day!

KylerNelson
Participant

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.

Featured Posts