Is it possible to configure LogStash with external input file?


(Clash Of Clanss) #1

Now I am working with ELK(ElasticSearch, LogStash, Kibana). I would like to know, how to configure LogStash with external input configuration file. Lets say for example If I am having an external xml configuration file like this, See this example XML configuration file.
43%20PM

So I like to get LogStash input path from this external xml file. is it possible to read external document from LogStash? if yes please share your solutions. or any other suggestions are really appreciated.
Thanks,


#2

Hy, @clash_of_clanss.

This is an example of an input file configuration

input {
    file {
        path => "/service/nginx/logs/*access.log"
        type => "nginx_access"
    }  
}

Regards

MrNerd


(Clash Of Clanss) #3

Thanks for responding MrNerd. In this case we are directly assigned path as input. But I dont want this static type of path declaration, I want it to be dynamic. So is there any possible to get path value from external input?

Thanks.


#4

Do you mean relative path when you say dynamic?

Regards

MrNerd


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.