Logstash: unable to read a file in windows


(Amit) #1

Hi Team,

I dont see the logstash is reading the input file I have given. is there any problem in my config file?
Output file is not getting generated. and my input file has 3 lines of text only.

config file - Desktop\softwares\logstash-6.4.1\bin\logstash.conf

input{
file{
path => "C:\Users\AKumar\Desktop\softwares\logstash-6.4.1\bin\testLog.log"
start_position => "beginning"
sincedb_path => "NUL"
}

}

output{
file
{
path => "C:\Users\AKumar\Desktop\amat\tasks\logExtractor\Dummy.log"
}
}

Can someone please help. Its bit urgent.


#2

Hello,

change the path to,
path => "C:/Users/AKumar/Desktop/softwares/logstash-6.4.1/bin/testLog.log"

Hope this will help you.


#3

follow this sample


(system) #4

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