---
title: "Gateway SQL - Dynamic target with a value as a rule target"
description: "Dynamic targets with a value as a rule target cannot be integrated directly in Gateway SQL. A workaround involves configuring Gateway SQL to monitor data across multiple columns and trigger severity based on its presence or absence."
url: "https://docs.itrsgroup.com/docs/faq/geneos/27984493872157-geneos-gateway-sql-dynamic-target-with-a-value-as-a-rule-target/index.html"
---
## Related to

*Fetch a Dynamic Data, Gateway SQL, Dynamic target with a value as a rule target*

### Problem

Dynamic target with a value as a rule target is something that can't be integrated.

### Possible solution(s)

Because a dynamic target with a value as a rule target cannot be integrated directly, we have created a workaround to achieve this.

**Example Scenario:**

1. The data (192.-.0.78) should be monitored even when the row has changed.
2. The data (192.-.0.78) should be present on either row of the outbound column. This gives us an ok severity if present and critical if not.

Here we have used this data as an example:

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984504048413-mceclip0.png)

For us to segregate these values, we have configured the Gateway-SQL to obtain the data coming from both columns:

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984504049053-mceclip1.png)

Following this example should give you something like this. This way, the data should still be detected even if it's present on different rows.

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984504049693-mceclip2.png)

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984504050589-mceclip3.png)

Now, we will have a rule that should compare these two values. When the data is not present on the second column, it should trigger a critical severity:

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-inline-1-image.png)

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-inline-2-image.png)

As an example, here we have removed the highlighted IP on the 2nd column:

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984504051613-mceclip4.png)

This should then trigger a critical severity given that the data is not available on the 2nd column:

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984493870621-mceclip5.png)

To also check to see if this can be detected even with a different row:

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984493870749-mceclip6.png)

![Geneos - Gateway SQL - Dynamic target with a value as a rule target](https://docscdn.itrsgroup.com/faq/images/geneos/27984493872157-27984493870877-mceclip7.png)

## Related article(s)

*<https://docs.itrsgroup.com/docs/faq/geneos/115004028369-geneos-gateway-sql-using-xpath-sources/index.html>*


