Is there a way to put a relative path in conf files?

Well, I was the next problem. I have a workspace as follows.

bin conf example lib LICENSE locales patterns README.md spec vendor 

In the conf folder, I have a logstash-apache.conf with the following input

 input { file { path => "./../example/logs/logprueba/*_log" start_position => beginning } } } 

When I start logstash, I get a message:

File paths must be absolute, relative path specified: ./../example/logs/logprueba/*_log

Is there a way to set the relative path?

+6
source share
1 answer

The answer will not be - not without changing the source code of the log ... According to docs :

The path to the file (s) to use as input. Here you can use globes such as / var / log / * .log. Paths must be absolute and cannot relate.

+3
source

Source: https://habr.com/ru/post/977124/


All Articles