# Problem with logstash configuration

**URL:** <https://discuss.elastic.co/t/problem-with-logstash-configuration/376061>\
**Category:** Elasticsearch\
**Created:** [March 18, 2025, 11:08am UTC](https://discuss.elastic.co/t/problem-with-logstash-configuration/376061 "2025-03-18T11:08:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dante.tettamanti](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@dante.tettamanti](https://discuss.elastic.co/u/dante.tettamanti)\
**Post date:** [March 18, 2025, 11:08am UTC](https://discuss.elastic.co/t/problem-with-logstash-configuration/376061/1 "2025-03-18T11:08:19Z")

</div>

Hi guys,  
first , sorry for my bad english .  
I have problem with target in the input filter i tried to run the configuration and send a message, but il looks like that the "target" option of the jsoncodec isn't apply

This is the configuration :

```auto
input {
  tcp {
    port => 5045
    codec => json {
      target => "sicuraweb"
    }
  }
}

output {
  elasticsearch {
    hosts => ["https://xxxx:9200"] 
    index => "test-target-%{+YYYY.MM.dd}"
    user => "xxx"
    password => "xxxxxx"
    ssl => true
    cacert => "/etc/elasticsearch/certs/http_ca.crt"

  }
  stdout { codec => rubydebug }
}

```

I run logstash in debug mode

```auto
/usr/share/logstash/bin/logstash -f /home/xxx/50-test.conf --log.level debug

```

And send a simple message

```auto
echo '{"data": ["2025-03-18 11:00:00"], "message": ["Test evento"], "user": ["test"]}' | nc localhost 5045

```

But when i look for mapping of the index , i don't find sicuraweb

What am i doing wrong?

Tnx for your time and sorry again for my bad englis
