# Probleme input UDP , no index, no DATA

**URL:** <https://discuss.elastic.co/t/probleme-input-udp-no-index-no-data/79883>\
**Category:** Logstash\
**Created:** [March 24, 2017, 12:23pm UTC](https://discuss.elastic.co/t/probleme-input-udp-no-index-no-data/79883 "2017-03-24T12:23:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre1](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@pierre1](https://discuss.elastic.co/u/pierre1)\
**Post date:** [March 24, 2017, 12:23pm UTC](https://discuss.elastic.co/t/probleme-input-udp-no-index-no-data/79883/1 "2017-03-24T12:23:56Z")

</div>

my configuration :

```
input {
  udp {
    port => 9556
    codec => netflow {
      versions => [5]
    }
    type => "Netflow"
  }
}

output {
    if ( [type] == "Netflow" ) {
        elasticsearch {
                hosts => ["localhost:9200"]
                index => "netflow-%{+YYYY.MM.dd}"
          }
    }     
}

```

netstat -au :  
`udp6 0 0 [::]:9556 [::]:*`

i see UDP6 but my flow is for ipv4

With TCPDUMP i see my netflow flow  
i don't understand , why i have a index in kibana but 0 DATA

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [March 31, 2017, 1:11pm UTC](https://discuss.elastic.co/t/probleme-input-udp-no-index-no-data/79883/2 "2017-03-31T13:11:31Z")

</div>

Hello Pierre,

I think we could start by checking if any events are correctly collected by Logstash, we can do this by adding a stdout and a rubydebug codec. If you start logstash from the command line with `Logstash -f ./myconfig` you should see traces in the terminal if any netflow event reach the output.

```auto
output {
    if ( [type] == "Netflow" ) {
        stdout {
          codec => rubydebug
        }
        elasticsearch {
                hosts => ["localhost:9200"]
                index => "netflow-%{+YYYY.MM.dd}"
          }

    }     
}

```

---

<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:** [April 28, 2017, 1:11pm UTC](https://discuss.elastic.co/t/probleme-input-udp-no-index-no-data/79883/3 "2017-04-28T13:11:59Z")

</div>

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