Hi,
I am using logstash 2.1 in Windows Server 2008 R2 OS. (Version Corrected)
I have some log files at some another server, and I am taking them as input for my logstash.
Shared Path : \\MIB030065\share2\Statoil-logs\Sharepoint/ST-W2284-20170607-0841.log
Now if I writing below in config file, it's discovering the changes (happening real time) in the same file.
input{
file{
type => "logs"
path => [ "\\MIB030065\share2\Statoil-logs\Sharepoint/ST-W2284-20170607.log" ]*
codec => multiline {
negate => true
pattern => "(^%{DATESTAMP})"
what => "previous"
charset => "UTF-8"
}
}
}
When I writing below, logstash is not able to discover that file or may be changes in that file.
input{
file{
type => "logs"
path => [ "\\MIB030065\share2\Statoil-logs\Sharepoint/ST-W2284.log" ]*
codec => multiline {
negate => true
pattern => "(^%{DATESTAMP})"
what => "previous"
charset => "UTF-8"
}
}
}
even below are not working.
path => [ "\\MIB030065\share2\Statoil-logs\Sharepoint/*.log" ]
path => [ "\\MIB030065\share2\Statoil-logs\Sharepoint/." ]
path => [ "\\MIB030065\share2\Statoil-logs\Sharepoint/*" ]
If anyone can help or come up with a workaround, I'd appreciate it.
Thanks,
Jigar Jarsania