I have an output rule for statsd
statsd {
host => "graphite-statsd"
port => 8125
namespace => ""
sender => "%{backend_name}"
increment => [
"%{http_status_code}"
]
}
this used to work great, but recently we upgraded logstash and it complains you can not increment a integer.
I can make this work by changing "%{http_status_code}"
to "{http_status_code}X"
however by adding the X I am corrupting my existing counters.
What can I do to make %{https_status_code}
be treated as a string and not a number?