---
title: "Gateway - How do I find invalid targets in my rules?"
description: "The Gateway Load plugin helps find invalid targets by showing matching items in rules. Use the directoryStats category to identify rules with zero or unexpected matching items."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004030229-geneos-gateway-how-do-i-find-invalid-targets-in-my-rules/index.html"
---
The Gateway Load plugin can show the all the matching items in a rule, and from there you can derive and identify the rules with potential invalid targets.

You can use the `directoryStats` category of the Gateway load plugin. Refer to the sample xml below:

```
<sampler name="Rules-Stats">
    <var-group>
        <data>Gateway Load</data>
    </var-group>
    <plugin>
        <Gateway-gatewayLoad>
            <view>
                <category>
                    <directoryStats>
                        <grouping>
                            <group>rule</group>
                        </grouping>
                        <statistics>
                            <expandType>rules</expandType>
                        </statistics>
                    </directoryStats>
                </category>
                <source>
                    <gatewayInternals></gatewayInternals>
                </source>
            </view>
        </Gateway-gatewayLoad>
    </plugin>
</sampler>
```

The resulting dataview will look something like the following:

![Gateway Load plug-in dataview](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-rules-stats-dataview.png)


**Note**



Some rules like FKM on the `triggerDetails` column could report 0 matching items and this could be normal and expected when there is no error key matching it in the log file.





