I want to use File Content sensor to scan my log file for some alarming message. We are using log4net Rolling log for logging. Our log File name is something like HeadEndService_20200925.log. When I tried File Content sensor, it only accept a fixed log file name. I am wondering if it is possible to make the file name more flexible with some variation such as Date in out example?
Can I put a Date in File Name field in File Content Sensor
Modified on 2025-06-10 15:25:16 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Hello,
Thank you for your message.
Please have a look at this KB article where the subject is already discussed: https://helpdesk.paessler.com/en/support/solutions/articles/63406-file-content-sensor-dynamic-filename
Kind regards.
Sep, 2020 - Permalink