windows logstash Expected one of #, input, filter, output at line 1, column 1
logstash启动报配置文件错误Expected one of #, input, filter, output at line 1, column 1 (byte 1)。一般是文件编码问题。有可能是拷贝的时候,将特殊字符拷贝了。这里有个最简单的办法。将配置文件内容拷贝。然后在Linux系统中 vi xxx.config。将拷贝的内容放入 xxx.config。就能发现特殊字符了。保存xxx.config。然后传回windows系统。这样基本就没有问题了
- 拷贝windows系统中的配置文件内容
- 登录Linux系统
vi test.config
将1中的内容粘贴到test.config。
- 发现test.config中有特殊字符。删除特殊字符,并保存。
- 将test.config回传windows系统。
- 问题解决。