# Retrieve and Configure Integration Pair Log Settings

## Description

To retrieve and modify Integration Pair Log Settings.

## Input

* Instance details:
  * Instance details like <code class="expression">space.vars.SITENAME</code> instance URL, username and password are to be given in **instanceDetails.properties** file available within the script.
* Integration details (to be given at the time of script execution):
  * Integration Group id of the entity pair for which you want to retrieve or modify the logSettings.
  * Select Integration entity pair.
* Integration Log Setting details (to be given at the time of script execution):
  * Select the jobMode from the available options.
  * Enter 'y' to modify the Integration Log Setting configuration.
  * Enter 'n' to end the execution.
* Update Integration Log Setting details (to be given at the time of script execution):
  * Select the value for As per Global Log Settings.
  * If As per Global Log Settings is selected as true, Global Log Settings will be followed.
  * If As per Global Log Settings is selected as false, enter the Integration Log Setting configuration details.

## Output

Configured Log Settings for the integration pair.

## Script

You can download the script from [here](https://opshub.com/ohftp/AdminAPI/retrieveandconfigurelogsetting.zip).

Here is an example of execution of script showing the input and the output:

<div align="center"><img src="/files/JUk6rJ9ynHN6Vk0FdS5e" alt=""></div>

<div align="center"><img src="/files/oFlbTcaJSx8NjXHQso4t" alt=""></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/7.223/manage/api/sample-use-cases/retrive-and-configure-integration-pair-log-setting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
