# Logstash sflow codec

**URL:** <https://discuss.elastic.co/t/logstash-sflow-codec/73116>\
**Category:** Logstash\
**Created:** [January 29, 2017, 10:10am UTC](https://discuss.elastic.co/t/logstash-sflow-codec/73116 "2017-01-29T10:10:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drolfe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drolfe/32/14993_2.png) [@drolfe](https://discuss.elastic.co/u/drolfe)\
**Post date:** [January 29, 2017, 10:10am UTC](https://discuss.elastic.co/t/logstash-sflow-codec/73116/1 "2017-01-29T10:10:36Z")

</div>

HI all,

I've just started using the below codec

[https://www.elastic.co/guide/en/logstash/current/plugins-codecs-sflow.html](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-sflow.html)

It works well, however doing a straight export into elasticsearch finds 95% of all the fields being of type text

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/3550f97125ab4d6e9c84c2c5e3e05339163b68f6.jpg)

```
root@elk-5:/var/log/logstash# dpkg-query -l | egrep -i "logstash|elastic|kibana" | awk '{ print $2,"\t",$3,"\t",$4}'
elasticsearch 5.1.1 all
kibana 5.1.1 amd64
logstash 1:5.1.1-1 all
root@elk-5:/var/log/logstash#

```

Current logstash config is super basic

```
input {
        udp {
                port => 6343
                codec => sflow {}
        }
}

output {
        elasticsearch {
                hosts => ["172.16.0.46:9200"]
        }
}

```

**I'm wanting to know if someone can give me some help on where to start with a template (json) override to be used on the logstash ES export**

Regards, Daniel

---

<div class="post-metadata">

**Author:** ![drolfe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drolfe/32/14993_2.png) [@drolfe](https://discuss.elastic.co/u/drolfe)\
**Post date:** [February 5, 2017, 1:32am UTC](https://discuss.elastic.co/t/logstash-sflow-codec/73116/2 "2017-02-05T01:32:06Z")

</div>

I'm wanting to know if someone can give me some help on where to start with a template (json) override to be used on the logstash ES export

---

<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 5, 2017, 1:32am UTC](https://discuss.elastic.co/t/logstash-sflow-codec/73116/3 "2017-03-05T01:32:50Z")

</div>

Closed on March 5, 2017, 1:32am UTC

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