UTF-8 Encoding in logstash configure file
- Dominant language
- Java
- Stars
- 14.9k
- Forks
- 3.5k
- Avg merge
- 19h 14m
- Merged PRs (30d)
- 63
Description
https://discuss.elastic.co/t/encoding-in-logstash-configure-file-and-there-must-be-space-before-end-of-exec-plugin-argument/32228
Hi there,
I have problem using korean(UTF-8) arguments in exec output.
``` bash
output {
# If there is not end space '(single quote) with "(double quote), error occur!
# This problem is another. check out forum link above.
command => "test.sh '' '{한글과 English}' 'somthing' "
}
```
Test shell scipt do echo variables.
Result is
```
var1 = {??? English}, var2 = something
```
Korean(UTF-8) is represented by ?(question mark)
When I run shell script itself, error not occur.
Below both example work.
``` bash
$ /etc/logstash/test.sh '한글(utf-8)' 'blah blah'
$ eval "/etc/logstash/test.sh '한글(utf-8)' 'blah blah'" # without space between ' and "
```
**And is there method to represent UTF-8 character in logstash configuration file?**
When I send to other plugin(file, stdout), not problem. But in exec plugin, argument is presented through logstash.
Contributor guide
Assessment
This issue has not been assessed yet.