elastic / elastic/logstash

File Input Plugin - Whitespace sensitive at EOF

Open
#4,716 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

Hi there,

I am using logstash-2.2.0 on Windows 7. My conf looks like this:

```
input {
file {
path => "C:/Data/Log/**/*"
start_position => "beginning"
sincedb_path => "C:/Data/Log.sincedb"
}
}
output {
elasticsearch {
hosts => [ "localhost:9200" ]
}
stdout {
codec => rubydebug
}
}
```

The file looks like rows of JSON, e.g.:

```
{"timestamp":"2015-12-01T00:26:31Z","ebusername":"WTcQtYJ5OrDTllvtNe9q3UqiHnadkNfH","wi-fi":{"bssid":"14DDA9739AB0","signal":-57,"noise":-87,"channel":1,"rx_mcs":"15","rx_ok":44887398,"rx_crc":19057519,"rx_per":2.9,"tx_ok":357524,"tx_retry":632142, "tx_fail":1080,"tx_per":63.9,"connects":49,"disconnects":48, "false_cca":217728637},"system":{"mac":"1C5A6B6346E0","ip_address":"","version":"319","sys_load":0.41,"mem_used":47744,"mem_free":14624,"camapp_crashes":1,"buttond_crashes":1,"network_up":58,"network_down":105,"qf":"null","temp":19.956633,"rh":59.734863,"light":0.00}}
```

I run my agent, doesn't work. Once I removed all whitespace at EOF of all files. Then it starts to pick up again. Is this a known bug?

Regards.

Zul

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.