# link log to existing entity

**URL:** <https://community.dynatrace.com/t/link-log-to-existing-entity/55680>\
**Category:** DQL\
**Tags:** openpipeline, dql, smartscape\
**Created:** [April 23, 2026, 2:05pm UTC](https://community.dynatrace.com/t/link-log-to-existing-entity/55680 "2026-04-23T14:05:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FabriBernie](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FabriBernie](https://community.dynatrace.com/u/FabriBernie)\
**Post date:** [April 23, 2026, 2:05pm UTC](https://community.dynatrace.com/t/link-log-to-existing-entity/55680/1 "2026-04-23T14:05:50Z")

</div>

I had importing log using API because of technology not currently supported&nbsp;&nbsp;  
I don’t have any enrichment with context information

However, name of k8s cluster and namespace is there

Is there a way to link these rows to existing entityID?  
I made some try on smatscape node and edge tab on openpipeline (log format is in JSON and I need to parse it)&nbsp;  
Unfortunately I was only able to create custom nodes

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [April 23, 2026, 2:19pm UTC](https://community.dynatrace.com/t/link-log-to-existing-entity/55680/2 "2026-04-23T14:19:38Z")

</div>

Yes, the Lookup feature can be used to enrich your logs with existing entity IDs.

Assume dt.kubernetes.cluster.name is the log field that contains your Kubernetes cluster name. You can correlate this with Smartscape entities as follows:

```markup
fetch logs
| filter isNotNull(dt.kubernetes.cluster.name)
| fields content, dt.kubernetes.cluster.name
| limit 5
| lookup [
smartscapeNodes K8S_CLUSTER
| fields name, id
], 
sourceField:dt.kubernetes.cluster.name, 
lookupField:name

```

This joins your log records with Smartscape cluster entities by matching the cluster name in your logs (dt.kubernetes.cluster.name) with the name field of K8S\_CLUSTER entities, returning the corresponding entity id.

---

<div class="post-metadata">

**Author:** ![FabriBernie](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@FabriBernie](https://community.dynatrace.com/u/FabriBernie)\
**Post date:** [April 23, 2026, 2:45pm UTC](https://community.dynatrace.com/t/link-log-to-existing-entity/55680/3 "2026-04-23T14:45:48Z")

</div>

ok, this is something useful in notebook or dashboard  
Unfortunately you cannot use Smartscape tabs in openPipeline to link to not custom entities isn’t it?
