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

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

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

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/gateway-update-remote-access-session-forwarding-elasticsearch`
- Auth: none declared

## 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.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
