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 :
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
/usr/share/logstash/bin/logstash -f /home/xxx/50-test.conf --log.level debug
And send a simple message
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