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
질문됨 2년 전45회 조회
1개 답변
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
전문가
답변함 2일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠