Logparser not have flush, transfer files only once when the service is run

#1

[[inputs.logparser]]
interval = “10s”
files = [“C:/Program Files/telegraf/Log Input/Maps/map.log”]
from_beginning = true

[inputs.logparser.grok]

patterns =  ['%{WORD:geohash:tag},%{NUMBER:value:int},%{WORD:name:string}']
measurement = "map"
custom_pattern_files = []
custom_patterns = '''
''
timezone = "Asia/Jakarta"
#2

data log :

w01ywdjmxvrz,0,Indonesia
qqguw3xtfgds,0,Indonesia
qqgutzkcc3vq,0,Indonesia
qqguyv7e6u55,0,Indonesia
qqgvjm0t5exm,0,Indonesia
qqgtmcqp7tpg,0,Indonesia
qpzmksje5378,0,Indonesia
qquh0w8j750k,0,Indonesia
qquhbz16nzvb,0,Indonesia
qqguqr6xq6dz,0,Indonesia
qqv1wn07e5yz,0,Indonesia
qqw7vcv030f6,0,Indonesia
qqws8e90jx0s,0,Indonesia

#3

In Windows you will want to use the poll method to detect changes:

[[inputs.logparser]]
  watch_method = "poll"