---
title: "POST /gateway-update-remote-access-session-forwarding-elasticsearch"
method: POST
path: "/gateway-update-remote-access-session-forwarding-elasticsearch"
tags: ["v2"]
---

# POST /gateway-update-remote-access-session-forwarding-elasticsearch

`POST /gateway-update-remote-access-session-forwarding-elasticsearch`

## Request body

- GwUpdateRemoteAccessSessionLogsElasticsearch — gwUpdateRemoteAccessSessionLogsElasticsearch is a command that updates session log forwarding config (elasticsearch target)
  - `api-key` string — Elasticsearch api key relevant only for api_key auth-type
  - `auth-type` string — Elasticsearch auth type [api_key/password]
  - `cloud-id` string — Elasticsearch cloud id relevant only for cloud server-type
  - `enable` string — Enable Log Forwarding [true/false]
  - `enable-tls` boolean — Enable tls
  - `index` string — Elasticsearch index
  - `json` boolean — Set output format to JSON
  - `nodes` string — Elasticsearch nodes relevant only for nodes server-type
  - `output-format` string — Logs format [text/json]
  - `password` string — Elasticsearch password relevant only for password auth-type
  - `pull-interval` string — Pull interval in seconds
  - `server-type` string — Elasticsearch server type [cloud/nodes]
  - `tls-certificate` string — Elasticsearch tls certificate
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication
  - `user-name` string — Elasticsearch user name relevant only for password auth-type

## Response `201`

gwUpdateRemoteAccessSessionLogsResponse wraps response body.

- GatewayUpdateLogForwardingOutput
  - `updated` boolean

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
