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
demandé il y a 2 ans45 vues
1 réponse
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
EXPERT
répondu il y a 2 jours

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions