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:

  1. changing filepath linux-style (e.g. c:/users/[rest of filepath].jsonlines)

  2. lower-casing c (e.g. "c:\ users[rest of filepath].jsonlines")

  3. using double \ \ (e.g. "c: \ \users[rest of filepath].jsonlines"

  4. 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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -