# LTSV parsing problem with the Go Weblog plugin

**URL:** <https://community.netdata.cloud/t/ltsv-parsing-problem-with-the-go-weblog-plugin/1431>\
**Category:** Help\
**Tags:** agent, agent-configuration\
**Created:** [June 14, 2021, 4:59pm UTC](https://community.netdata.cloud/t/ltsv-parsing-problem-with-the-go-weblog-plugin/1431 "2021-06-14T16:59:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danmichaelo](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/danmichaelo/32/916_2.png) [@danmichaelo](https://community.netdata.cloud/u/danmichaelo)\
**Post date:** [June 14, 2021, 4:59pm UTC](https://community.netdata.cloud/t/ltsv-parsing-problem-with-the-go-weblog-plugin/1431/1 "2021-06-14T16:59:59Z")

</div>

I’m trying to get Netdata to parse LTSV log entries from Apache. Starting with a minimal example:

```
LogFormat "time:%t\trequest_method:%m\tstatus:%>s\thost:%{Host}i" ltsv

```

which produces log entries like these:

```auto
time:[14/Jun/2021:17:02:48 +0000]	request_method:GET	status:404	host:localhost
time:[14/Jun/2021:17:02:48 +0000]	request_method:GET	status:404	host:127.0.0.1
time:[14/Jun/2021:17:02:48 +0000]	request_method:GET	status:404	host:[::1]
time:[14/Jun/2021:17:03:23 +0000]	request_method:GET	status:301	host:aja.bs.no
time:[14/Jun/2021:17:03:43 +0000]	request_method:GET	status:301	host:aja.bs.no

```

Netdata seems to mostly parse these fine. The requests, responses and http method charts all work fine, but not the vhost chart, which only shows “::1” (with 0 requests):

 ![Screenshot 2021-06-14 at 19.05.18](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/1X/d30e46da12b5df461a372a1319da1115a1effa39.png)

Checking the Netdata error log, I found the following error:

```
2021-06-14 16:48:47: go.d WARNING: web_log[apache_vhosts] error on adding dim to chart 'requests_by_vhost' : unacceptable symbol in dim ID 'req_vhost_aja.bs.no
' : '
'

```

Is there something wrong about how I specify the host field?

Here’s my `web_log.conf`:

```auto
jobs:
  - name: apache_vhosts
    path: /var/log/apache2/aja.access.log
    log_type: ltsv

```

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [June 15, 2021, 11:06am UTC](https://community.netdata.cloud/t/ltsv-parsing-problem-with-the-go-weblog-plugin/1431/2 "2021-06-15T11:06:01Z")

</div>

Hi @danmichaelo

That is a bug, thanks for reporting. Fixed in [pkg/logs: remove new line char when reading a line by ilyam8 · Pull Request #584 · netdata/go.d.plugin · GitHub](https://github.com/netdata/go.d.plugin/pull/584).
