Logstash relative filepath error when referencing Windows file -
i trying read local .jsonlines file on windows machine , keep getting following error:
file paths must absolute, relative path specified: path => "c:\users[rest of filepath].jsonlines"
here config file:
input { file { path => "c:\users\[rest of filepath].jsonlines" start_position => "beginning" sincedb_path => "nul" } } filter { json{ source => "message" } } output { csv { fields => ["myfield1","myfield2","myfield3"] path => "c:\users\ [rest of filepath].csv" } }
here's have tried:
changing filepath linux-style (e.g. c:/users/[rest of filepath].jsonlines)
lower-casing c (e.g. "c:\ users[rest of filepath].jsonlines")
using double \ \ (e.g. "c: \ \users[rest of filepath].jsonlines"
used double \ \ directories (e.g. "c: \ \users \ \ restof \ \ [filepath].jsonlines")
what deal? see there issues around windows filepaths suggestions i've found (see above) haven't worked. using windows 10 , windows 7, logstash version 1.5.6 (unable update 2.x @ time).
thanks in advance!
solved using later version of logstash (1.5.5 worked, , 2.3.1 worked). ended installing 2.3.1 , well.
Comments
Post a Comment