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
posta 2 anni fa45 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 2 giorni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande