Using _user security variable inside ingest pipeline

0

Hello,

I have setup a domain that uses IAM auth via cognito. I created the below ingest pipeline. However, the user property is always an empty string. Does aws open search support the _user security variable.

PUT _ingest/pipeline/post
{
  "description": "post",
  "processors": [
    {
      "set": {
        "description": "Add user info",
        "field": "user",
        "value": "{{_user.username}}"
      }
    }
  ]
}
druid
preguntada hace 2 años45 visualizaciones
1 Respuesta
0

Hello, as far as I know OpenSearch does not support _user variable. Find another way to pass the user information via ingestion, for example...

POST /your_index/_doc
{
  "user": "user123",
  "other_field": "other_value"
}
profile picture
EXPERTO
respondido hace 2 días

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas