# Guidelines for Exporting Logs

## **Admin Portal**

* Log in to the admin portal. Navigate to **App Container Logs** under the **Insights** section in the left blade.
* Select the required Application/Container logs using the checkboxes, then click **Export** to download them.

![Export app container log files](/files/5m04bGnq2C4BcVArp4Kd)

## **To retrieve additional logs from various Azure services:**

### 1. App Service

#### Log Stream:

* In the App Service blade, under **Monitoring**, select **Log stream**.
* This opens a live log streaming session for your application.

![Log stream](/files/rJVVQdnx2c0duG9gRB1c)

#### **Deployment Center Logs:**

{% hint style="warning" %}

### Note: App Service does not persist deployment logs after restarts or after a certain retention period.

{% endhint %}

* From the left blade, select **Deployment Center**.
* Click on **Logs**.
* These logs include build steps, deployment actions, and any errors or warnings.
* If a deployment is in progress, logs will stream live in the Logs pane.

![Deployment center logs](/files/BnObGTFNDY4SfTSD6xqp)

* Click the **Download** toggle and then click on **Download the .zip file** to export the logs.

![Download logs](/files/D9JrLl7txSXwMMrOW4Qh)

### 2. Azure Kubernetes Services

#### **CLI**:

* From the AKS **Overview** tab, select **Connect**, then use **Open Cloud Shell** to set the subscription and configure the cluster credentials.

<figure><img src="/files/huiquxUy8OMhA0j1hilX" alt=""><figcaption><p>Open Cloud Shell</p></figcaption></figure>

#### In Cloud Shell, use the following commands to view pod logs:

* **List all pods in a namespace:**

`kubectl get pods -n <namespace>`

* **View logs of a specific pod:**

`kubectl logs <pod-name> -n <namespace>`

* **Stream logs in real-time:**

`kubectl logs -f <pod-name> -n <namespace>`

* **Export logs of specific pod**

`kubectl logs <pod-name> -n <namespace> > podlogs.txt`

### 3. Container Instance

#### Container Logs:

* On the left blade, click **Containers**.
* Select the specific container you want to inspect.
* Click on **Logs**; this shows the individual container’s logs.

![Container logs](/files/FGIeXeiSnOplnO9A8G4m)


---

# 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://docs.inforiver.com/inforiver-enterprise-on-prem/troubleshooting-steps/guidelines-for-exporting-logs.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.
