Hi
when i tried with stdin{} it works fine. but reading from file not getting any data in elasticsearch in windows.
Please find the below conf details.
Conf file:
input{
# stdin{}
file{
type =>"syslog"
path => ["D:/Logs_Montoring/LogAnalysis/logstash-7.5.0/logs.txt"]
start_position => "beginning"
sincedb_path => "NUL"
}
}
output{
stdout{
codec => rubydebug
}
elasticsearch{
hosts => ["http://localhost:9200"]
index => "logs"
}
}
Input file data:
Timestamp: 12/24/2019 5:42:04 AM
Message: Task timed out - SDFC is not responding in timely manner
Category: Error
Priority: -1
EventId: 1
Severity: Information
Title:
Machine: AS00049
App Domain: /ED/W3SVC/64/ROOT/PRP.Services/merchant/eondod.dkos.do-301-132216577167216650
ProcessId: 15068
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name: Win32 ThreadId:19512
Extended Properties: WebSession - NE343.NE2332@Q7T0+cK7Bf4UOzfKe9F8HUv6yC4=