# Logstash codec graphite - not adhereing to settings

**URL:** https://discuss.elastic.co/t/logstash-codec-graphite-not-adhereing-to-settings/233501
**Category:** Logstash
**Created:** [May 20, 2020, 9:51am UTC](https://discuss.elastic.co/t/logstash-codec-graphite-not-adhereing-to-settings/233501 "2020-05-20T09:51:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Securitybits](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/securitybits/32/68724_2.png) [@Securitybits](https://discuss.elastic.co/u/Securitybits)
#### Post date: [May 20, 2020, 9:51am UTC](https://discuss.elastic.co/t/logstash-codec-graphite-not-adhereing-to-settings/233501/1 "2020-05-20T09:51:45Z")

</div>

Hello, i am trying to ingest graphite metrics from my FreeNAS Server into elasticsearch-7.7 through a logstash-7.7 pipeline.

my configurations are:

```auto
    input {
      tcp {
        port => 2003
        type => graphite
        codec => graphite { metrics_format => "servers.%{host}.*" }
      }
    }
    output {
      if "syslog" in [type] {
        [.. snip ..]
      } else if "graphite" in [type] {
        elasticsearch {
          hosts => ["localhost:9200"]
          manage_template => false
          index => "graphite-%{+YYYY.MM.dd}"
        }
      } else {
        [.. snip ..]
      }
    }

```

Though the actual document that i am receiving is formatted like

```auto
    _source": {
        "servers.Yggdrasil.rrdcached.gauge-tree_depth": 11,
        [... snip ...]
        "host": "Yggdrasil.securitybits.local",
        "type": "graphite"
      }

```

But with the settings for the input codec i expected logstash to actually split the "servers.yggdrasil.rrdcached" But it does not seem to adhere to the proper codec settings. I am currently moving away from influxdb and grafana in order to have all my logs and metrics in the same place.  
Would an alternative to this setup be to actually install metricbeat to freenas, i have not seen any mentions of it anywhere though.

---

<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: [June 17, 2020, 10:03am UTC](https://discuss.elastic.co/t/logstash-codec-graphite-not-adhereing-to-settings/233501/2 "2020-06-17T10:03:27Z")

</div>

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