This does not work...
C:\Bitnami\elk\logstash\conf\test1.conf
input {
file {
path => "C:\Upload\DNS_log_03.log"
sincedb_path => "C:\Upload\null"
start_position => "beginning"
file_completed_action => "log"
file_completed_log_path => "C:\Upload\log.log"
}
}
output {
file {
path => "C:/Upload/outfile.log"
#codec => "json"
}
}
logstash-plain.log
...
[2019-11-18T09:06:58,418][DEBUG][logstash.outputs.file ] config LogStash::Outputs::File/@path = "C:/Upload/outfile.log"
...
[2019-11-18T09:06:59,105][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2019-11-18T09:06:58,590][DEBUG][org.logstash.config.ir.CompiledPipeline][main] Compiled output
P[output-file{"path"=>"C:/Upload/outfile.log"}|[str]pipeline:12:3:```
file {
path => "C:/Upload/outfile.log"
#codec => "json"
}
into
org.logstash.config.ir.compiler.ComputeStepSyntaxElement@c96a6eaa
[2019-11-18T09:06:58,590][DEBUG][org.logstash.config.ir.CompiledPipeline][main] Compiled output
P[output-file{"path"=>"C:/Upload/outfile.log"}|[str]pipeline:12:3:```
file {
path => "C:/Upload/outfile.log"
#codec => "json"
}
```]
into
org.logstash.config.ir.compiler.ComputeStepSyntaxElement@c96a6eaa
[2019-11-18T09:06:58,605][DEBUG][org.logstash.config.ir.CompiledPipeline][main] Compiled output
P[output-file{"path"=>"C:/Upload/outfile.log"}|[str]pipeline:12:3:```
file {
path => "C:/Upload/outfile.log"
#codec => "json"
}
```]
into
org.logstash.config.ir.compiler.ComputeStepSyntaxElement@c96a6eaa
[2019-11-18T09:06:58,605][DEBUG][org.logstash.config.ir.CompiledPipeline][main] Compiled output
P[output-file{"path"=>"C:/Upload/outfile.log"}|[str]pipeline:12:3:```
file {
path => "C:/Upload/outfile.log"
#codec => "json"
}
```]
into
org.logstash.config.ir.compiler.ComputeStepSyntaxElement@c96a6eaa
[2019-11-18T09:07:00,465][DEBUG][logstash.outputs.file ] Starting flush cycle
...
And, the file C:\Upload\outfile.log is also not created.
Any more ideas?