# Connecting Log data to traces in EasyTravel

**URL:** <https://community.dynatrace.com/t/connecting-log-data-to-traces-in-easytravel/39411>\
**Category:** Logs\
**Tags:** distributed-traces-classic, log-monitoring-class\
**Created:** [April 21, 2023, 11:33pm UTC](https://community.dynatrace.com/t/connecting-log-data-to-traces-in-easytravel/39411 "2023-04-21T23:33:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gfragoso\_babel](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@gfragoso\_babel](https://community.dynatrace.com/u/gfragoso_babel)\
**Post date:** [April 21, 2023, 11:33pm UTC](https://community.dynatrace.com/t/connecting-log-data-to-traces-in-easytravel/39411/1 "2023-04-21T23:33:31Z")

</div>

Hello

I need to do a demo with EasyTravel but I cant see available “View Trace”

I tried with&nbsp;[Connecting log data to traces (Logs Classic) — Dynatrace Docs](https://www.dynatrace.com/support/help/observe-and-explore/logs/log-monitoring/log-monitoring-configuration/log-enrichment)

What can I do ?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [April 24, 2023, 7:43am UTC](https://community.dynatrace.com/t/connecting-log-data-to-traces-in-easytravel/39411/2 "2023-04-24T07:43:08Z")

</div>

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.&nbsp;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/181271](https://community.dynatrace.com/topic/181271)

Then everything should start working.

Radek

---

<div class="post-metadata">

**Author:** ![KylerNelson](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@KylerNelson](https://community.dynatrace.com/u/KylerNelson)\
**Post date:** [August 8, 2023, 9:55pm UTC](https://community.dynatrace.com/t/connecting-log-data-to-traces-in-easytravel/39411/3 "2023-08-08T21:55:12Z")

</div>

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&nbsp;logs [Opt-In]

Nginx - Trace/span context enrichment for&nbsp;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&nbsp;-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/](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.
