# CentOS7 + rsyslog-elasticsearch.x86\_64 + nginx = charset=utf-8\] is not supported

**URL:** <https://discuss.elastic.co/t/centos7-rsyslog-elasticsearch-x86-64-nginx-charset-utf-8-is-not-supported/117342>\
**Category:** Elasticsearch\
**Created:** [January 28, 2018, 1:10am UTC](https://discuss.elastic.co/t/centos7-rsyslog-elasticsearch-x86-64-nginx-charset-utf-8-is-not-supported/117342 "2018-01-28T01:10:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BiG\_NoBoDy](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@BiG\_NoBoDy](https://discuss.elastic.co/u/BiG_NoBoDy)\
**Post date:** [January 28, 2018, 1:10am UTC](https://discuss.elastic.co/t/centos7-rsyslog-elasticsearch-x86-64-nginx-charset-utf-8-is-not-supported/117342/1 "2018-01-28T01:10:36Z")

</div>

Hi all,  
I am building a tiny system for log analysis, and not able to install additional agent, so using already working rsyslog to send logs to elasticsearch.

My rsyslog and elasticsearch are separate VM's. These VM's have 1 common network: 10.8.4.0/24 .

rsyslog server has installed rsyslog-elasticsearch.x86\_64 and configured to receive error logs from all servers in all infrastructure.

My Elasticsearch is running on localhost:9200, I have setup nginx as a proxy to it.

here are my configs:

> ```
> [root@all-logs rsyslog.d]# cat 00-Send2Elastic.conf
> module(load="omelasticsearch")
> template(name="testTemplate"
> type="list"
> option.json="on") {
> constant(value="{")
> constant(value="\"timestamp\":\"") property(name="timereported" dateFormat="rfc3339")
> constant(value="\",\"message\":\"") property(name="msg")
> constant(value="\",\"host\":\"") property(name="hostname")
> constant(value="\",\"severity\":\"") property(name="syslogseverity-text")
> constant(value="\",\"facility\":\"") property(name="syslogfacility-text")
> constant(value="\",\"syslogtag\":\"") property(name="syslogtag")
> constant(value="\"}")
> }
> action(type="omelasticsearch"
> server="10.8.4.21"
> serverport="29200"
> template="testTemplate"
> searchIndex="test-index"
> searchType="test-type"
> bulkmode="on"
> maxbytes="100m"
> queue.type="linkedlist"
> queue.size="5000"
> queue.dequeuebatchsize="300"
> action.resumeretrycount="-1")
> 
> # http://www.rsyslog.com/doc/v8-stable/configuration/modules/omelasticsearch.html
> # https://sematext.com/blog/recipe-rsyslog-elasticsearch-kibana/
> 
> ```

```
[root@test-elk centos]# cat /etc/nginx/conf.d/elastic.conf 
server {
    listen 10.8.4.21:29200;

    server_name elastic.host;

    allow 10.8.4.0/24;
    deny all;

    location / {
        proxy_pass http://localhost:9200;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;        
    }
}

```

Everything else seems have no issue 🙂 at first look.

Error log from rsyslogd -nd:

> **[rsyslogd -dn # with elsticsearch module - Pastebin.com](https://pastebin.com/YDrTi2q5)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 3, 2018, 11:40am UTC](https://discuss.elastic.co/t/centos7-rsyslog-elasticsearch-x86-64-nginx-charset-utf-8-is-not-supported/117342/5 "2018-03-03T11:40:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
