---
title: "How to extract the samplingStatus of all samplers running in a Gateway"
description: "Extracting the samplingStatus headline cell of all samplers running in a Gateway requires configuring a Gateway SQL sampler. Use GW\\SQL\\samplingStatus.xml or GW\\SQL\\samplingStatus\\NOT\\OK.xml and adjust sampleInterval to reduce Gateway utilization."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004030129-geneos-how-to-extract-the-samplingstatus-of-all-samplers-running-in-a-gateway/index.html"
---
There could be a requirement to extract the Sampling Status headline cell of all samplers running in a Gateway. This can be done by configuring a [Gateway SQL sampler](https://docs.itrsgroup.com/docs/geneos/current/processing/configuration/geneos_gateway_plugins_tr/#gateway-sql).

## Warning

This sampler configuration could increase the utilization of the Gateway. Hence, either set the `sampleInterval` to a higher value such as 10 minutes or set it to manual sampling, such as `sampleInterval = 0`.

- To extract all `samplingStatus` headline cell values, use [GW\_SQL\_samplingStatus.xml](/faq/downloads/geneos/115004030129-6416994405533-GW_SQL_samplingStatus.xml). The dataview would look like the following:

![Geneos samplingStatus ok dataview](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-sampling-status.png)

- To extract all `samplingStatus` headline cells with a value not equal to `OK`, use [GW\_SQL\_samplingStatus\_NOT\_OK.xml](/faq/downloads/geneos/115004030129-6417111727645-GW_SQL_samplingStatus_NOT_OK.xml). The dataview would look like the following:

![Geneos samplingStatus not ok dataview](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-sampling-status-not-ok.png)


