Launch simultaneous multiples logtsatash's files configuration


#1

Hi,

I need to launch simultaneous multiples logtsatash's files configuration .
Is it possible with this only command ? => bin/logstash agent -f logstashfile1.conf logstashfile2.conf logstashfile3.conf

Thanks,


#2

With this command it's just for test.

Configuration files will be in /etc/logstash/conf.d and you can have multiple config


#3

Ah OK, Alex. So I will see in /etc/logstash/conf.d

Thanks so much


#4

Don't forget restart Logstash service :wink:


(Architha) #5

Hi Alex,

Could you help me with the path of conf.d ?
P.S I am on windows machine, i did not find etc/logstash.

Thanks!


#6

Hi Architha,

i'm sorry i don't know how Logstash works on Windows machine :confused: !

But maybe in folder where you have installed Logstash ? Like C:\Program\Logstash\ ?

Keep me up-to-date if you find !


#7

Hi Alex,

Finally, i don't modify conf.d . I used in my only logstash File Configuration with the condition ( if, else if ...) to verify the path for each files' group to apply what I want for each Log Type :slight_smile: :

input {
file {
'path' => FOLDER/DEV1/.log
}
file {
'path' => FOLDER/DEV2/
.log
}
}

filter{

if [path] =~ "DEV1" { kv{} mutate{}.................}
else if [path] =~ "DEV2" { kv{} grok{}.................}

}

output {
elasticsearch{

   		hosts => '127.0.0.1:9200'
    	index => 'logstash-2016.01.15'

}
stdout {}

}


#8

This is perfect :slightly_smiling:

But I think it's better have several Files Configuration, it's more easy to find your option who must be modified


#9

Yes I agree with you that it's more easy to find or debug option, if i use this. :slight_smile: ... So I will see after :).

Think You


(system) #10