# Trying to visulaize the working of a dead letter queue but getting error while creating index

**URL:** <https://discuss.elastic.co/t/trying-to-visulaize-the-working-of-a-dead-letter-queue-but-getting-error-while-creating-index/354078>\
**Category:** Logstash\
**Created:** [February 26, 2024, 4:33am UTC](https://discuss.elastic.co/t/trying-to-visulaize-the-working-of-a-dead-letter-queue-but-getting-error-while-creating-index/354078 "2024-02-26T04:33:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karan37/32/131451_2.png) [@Karan37](https://discuss.elastic.co/u/Karan37)\
**Post date:** [February 26, 2024, 4:33am UTC](https://discuss.elastic.co/t/trying-to-visulaize-the-working-of-a-dead-letter-queue-but-getting-error-while-creating-index/354078/1 "2024-02-26T04:33:06Z")

</div>

This is my logstash configuration

```auto
input {
  file{
    path => "C:\Elastic Stack\logstash-8.12.0\config\sample-data-dlq.json"
    start_position => "beginning"
    sincedb_path => "NUL"
    codec => "json"
  }
}
filter{
  json{
    source => "message"
  }
}
output { 
  elasticsearch {
    hosts => ["https://127.0.0.1:9200"]
    index => "test.dlq"
    user => "elastic"
    password => "elastickaran"
    ssl_certificate_verification => false
  }
  stdout {
    codec => rubydebug
  }
}

```

this the sample json data

```auto
[
    {"age": 30, "full_name": "John Doe", "gender": "Male"},
    {"age": 25, "full_name": "Jane Smith", "gender": "Female"},
    {"age": 40, "full_name": "Alex Johnson", "gender": "Male"},
    {"age": 22, "full_name": "Emily Davis", "gender": "Female"},
    {"age": 35, "full_name": "Michael Brown", "gender": "Male"},
    {"age": 28, "full_name": "Olivia White", "gender": "Female"},
    {"age": 45, "full_name": "William Lee", "gender": "Male"},
    {"age": 27, "full_name": "Sophia Miller", "gender": "Female"},
    {"age": 32, "full_name": "Daniel Wilson", "gender": "Male"},
    {"age": 26, "full_name": "Grace Turner", "gender": "Female"},
    {"age": false, "full_name": "Matthew Harris", "gender": "Male"},
    {"age": true, "full_name": "Ella Carter", "gender": "Female"},
    {"age": true, "full_name": "James Anderson", "gender": "Male"},
    {"age": true, "full_name": "Ava Robinson", "gender": "Female"},
    {"age": true, "full_name": "Christopher Taylor", "gender": "Male"},
    {"age": false, "full_name": "Mia Wright", "gender": "Female"},
    {"age": false, "full_name": "Joseph Evans", "gender": "Male"},
    {"age": false, "full_name": "Lily Harris", "gender": "Female"},
    {"age": true, "full_name": "Benjamin Reed", "gender": "Male"},
    {"age": true, "full_name": "Chloe Johnson", "gender": "Female"}
]

```

The problem is that this conf logstash file is not creating index or either you can say not sending data to elasticsearch

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [February 26, 2024, 4:44am UTC](https://discuss.elastic.co/t/trying-to-visulaize-the-working-of-a-dead-letter-queue-but-getting-error-while-creating-index/354078/2 "2024-02-26T04:44:20Z")

</div>

Since you are using Windows, change back slashes to forward slashes:  
`path => "C:/Elastic Stack/logstash-8.12.0/config/sample-data-dlq.json"`

Speaking of data, the age has the numeric and the boolean type., is that OK?

---

<div class="post-metadata">

**Author:** ![Karan37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karan37/32/131451_2.png) [@Karan37](https://discuss.elastic.co/u/Karan37)\
**Post date:** [February 26, 2024, 5:46am UTC](https://discuss.elastic.co/t/trying-to-visulaize-the-working-of-a-dead-letter-queue-but-getting-error-while-creating-index/354078/3 "2024-02-26T05:46:23Z")

</div>

yeah , @Rios thanks for the reply and also greatly thankfull for the solution it worked and

> [@Rios](#):
>
> Speaking of data, the age has the numeric and the boolean type., is that OK?

i am doing that so when logstash starts to read the integer value after all the integer value is completed then it will encounter boolean value and send the data to the dead\_letter\_queue and process the data again from the dead\_letter\_queue to the elasticsearch

---

<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 25, 2024, 5:47am UTC](https://discuss.elastic.co/t/trying-to-visulaize-the-working-of-a-dead-letter-queue-but-getting-error-while-creating-index/354078/4 "2024-03-25T05:47:25Z")

</div>

Closed on March 25, 2024, 5:47am UTC

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