Elasticsearch output without 'type' field

Hi,

I have the following configuration :

input {
    http {
        code => "json"
    }
}
output {
    elasticsearch {
        index => "doc"
    }
}

This creates documents in the doc index with the default _type 'logs'. Good, but now, I want to specify my own _type, so I modify my input like below :

input {
    http {
        code => "json"
        type => "myType"
    }
}

Now documents are index with the right _type.
But the problem is that the indexed documents have a field named 'type' in their _source.

Is there any way to tell the elasticsearch output to use a specific _type but without having a type field indexed ?

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