Hi All,
Here is my telegraf plugin :
This exec plugin is converting UCS-2 LE BOM to UTF-8
[[inputs.exec]]
commands = [“powershell.exe -File C:/Users/Administrator/Desktop/MSSQLSCRIPT.ps1”]
Stream a log file, like the tail -f command
[[inputs.logparser]]
These accept standard unix glob matching rules, but with the addition of
files = [“C:/Program Files/Microsoft SQL Server/MSSQL13.MSSQLSERVER/MSSQL/Log/ERRORLOG_UTF8.log”]
##Read file from beginning.
from_beginning = false
[inputs.logparser.grok]
patterns = ["%{TIMESTAMP_ISO8601:timestamp}%{SPACE}%{WORD:component:tag}%{SPACE}%{LOGLEVEL:level:tag}%{SPACE}%{GREEDYDATA:message}"]
measurement = "mssql_logs"
By using this plugin every thing is working fine but when I collecting the mssql log file the same log file is coming multiple times or duplicate log file is coming
Could you suggest where I did mistake. I am struggling this issue from past 1 weeks.