# Logstash Avro data points are resulting into default value instead of the value from kafka output

**URL:** <https://discuss.elastic.co/t/logstash-avro-data-points-are-resulting-into-default-value-instead-of-the-value-from-kafka-output/250275>\
**Category:** Logstash\
**Created:** [September 29, 2020, 2:33am UTC](https://discuss.elastic.co/t/logstash-avro-data-points-are-resulting-into-default-value-instead-of-the-value-from-kafka-output/250275 "2020-09-29T02:33:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastersmit](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@mastersmit](https://discuss.elastic.co/u/mastersmit)\
**Post date:** [September 29, 2020, 2:33am UTC](https://discuss.elastic.co/t/logstash-avro-data-points-are-resulting-into-default-value-instead-of-the-value-from-kafka-output/250275/1 "2020-09-29T02:33:55Z")

</div>

Logstash output:

```auto
{
     "timestamp" => 0,
      "username" => "",
         "tweet" => "",
      "@version" => "1",
    "@timestamp" => 2020-09-29T01:59:15.867Z
}

```

Kafka Consumer output:

```auto
{"username":"John Smith","tweet":"Amazing Tweet wCO00","timestamp":404000000}

```

tweet.avsc

```auto
{
   "type":"record",
   "name":"Tweet",
   "namespace":"com.example",
   "fields":[
      {
         "name":"username",
         "type":"string",
         "doc":"Name of the user account on Twitter.com"
      },
      {
         "name":"tweet",
         "type":"string",
         "doc":"The content of the user's Twitter message"
      },
      {
         "name":"timestamp",
         "type":"long",
         "doc":"Unix epoch time in seconds"
      }
   ],
   "doc:":"A basic schema for storing Twitter messages"
}

```

---

<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:** [October 27, 2020, 2:33am UTC](https://discuss.elastic.co/t/logstash-avro-data-points-are-resulting-into-default-value-instead-of-the-value-from-kafka-output/250275/2 "2020-10-27T02:33:56Z")

</div>

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