---
title: "How do I control the sampling time using an external file?"
description: "Controlling the sampling time using an external file in Geneos is done with the File Trigger feature in the sampler's Advanced tab. This feature monitors file modification times to trigger sampling, allowing control over sampling frequency based on file updates."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004030949-geneos-how-do-i-control-the-sampling-time-using-an-external-file/index.html"
---
**Use the File Trigger feature in the sampler's Advanced tab.**

The **File trigger** feature allows external control of a sampler. Netprobe will monitor all configured files for a change in modification time. When a change is detected, the sampler will sample. This setting is typically used when regular sampling has been disabled.

For example:  Geneos - How do I control the sampling time using an external file?  Whenever the *control.txt* file is updated (i.e. appended with a new line), the sampler will do a sample. You can also control the number of times that a file trigger can be triggered per minute. For this example, the sampler will sample 3 times within 1 minute if the file has been updated 3 or more times.


