I have filebeats going and I'm trying to play around with ingest pipelines. I have accessed the console and defined the following pipeline...
PUT _ingest/pipeline/upper
{
"description": "Testing lower to uppercase on fileset.name",
"processors": [
{
"uppercase": {
"field": "fileset.name"
}
}
]
}
After doing this I validated it was added with GET _ingest/pipeline/upper
which returned...
{
"upper" : {
"description" : "Testing lower to uppercase on fileset.name",
"processors" : [
{
"uppercase" : {
"field" : "fileset.name"
}
}
]
}
}
I try and test it with a single document via...
PUT filebeat-7.6.2-2020.05.02-000001/_doc/ny1z03EBxpMbNnRZgGlQ?pipeline=upper
but it returns the following...
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "request body is required"
}
],
"type" : "parse_exception",
"reason" : "request body is required"
},
"status" : 400
}
What am I doing wrong here? I know this is a valid _id
. When I search by _id
such as...
GET filebeat-7.6.2-2020.05.02-000001/_search
{
"query": {
"terms": {
"_id": [
"ny1z03EBxpMbNnRZgGlQ"
]
}
}
}
I get valid output...
...
"hits" : [
{
"_index" : "filebeat-7.6.2-2020.05.02-000001",
"_type" : "_doc",
"_id" : "ny1z03EBxpMbNnRZgGlQ",
"_score" : 1.0,
...