hello @scott
Can you help me with the “Telegraf” configuration for file?
# Parse a complete file each interval
[[inputs.file]]
## Files to parse each interval. Accept standard unix glob matching rules,
## as well as ** to match recursive files and directories.
files = ["/tmp/metrics.out"]
## Character encoding to use when interpreting the file contents. Invalid
## characters are replaced using the unicode replacement character. When set
## to the empty string the data is not decoded to text.
## ex: character_encoding = "utf-8"
## character_encoding = "utf-16le"
## character_encoding = "utf-16be"
## character_encoding = ""
# character_encoding = ""
## Data format to consume.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "influx"
## Name a tag containing the name of the file the data was parsed from. Leave empty
## to disable. Cautious when file name variation is high, this can increase the cardinality
## significantly. Read more about cardinality here:
## https://docs.influxdata.com/influxdb/cloud/reference/glossary/#series-cardinality
# file_tag = ""
Would like from this NAS folder "\192.168.1.198\share
Who receives new text files every day with the date as name “Name + Date”.
(there are every days 3 Files “File one-2024-02.txt” / “File two-2024-02.txt” / “File three-2024-02.txt”)
Read this in automatically
The time Stamp format is p=ms
I’m currently doing it by hand. By Powershell
PS C:\Program Files\InfluxData\influxcli> .\influx write --bucket Test --p ms --format=lp `
>> -f \\192.168.1.198\share\File` One-2024-02.txt `
>> -f \\192.168.1.198\share\File` Two-2024-02.txt `
>> -f \\192.168.1.198\share\File` Three-2024-02.txt
Can You Help me?
Many Thanks
LG Mike

