# getKubernetesPodLogs

> Function getKubernetesPodLogs in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Function getKubernetesPodLogs in pulumi-portainer.

Invoke token: `portainer:index/getKubernetesPodLogs:getKubernetesPodLogs`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const result = await portainer.getKubernetesPodLogs({
  environmentId: 0,
  namespace: "<namespace>",
  podName: "<podName>",
})
```

`getKubernetesPodLogsOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property        | Type      | Required | Description |
| --------------- | --------- | -------- | ----------- |
| `container`     | `string`  | no       |             |
| `environmentId` | `number`  | yes      |             |
| `id`            | `string`  | no       |             |
| `namespace`     | `string`  | yes      |             |
| `podName`       | `string`  | yes      |             |
| `previous`      | `boolean` | no       |             |
| `sinceSeconds`  | `number`  | no       |             |
| `tailLines`     | `number`  | no       |             |
| `timestamps`    | `boolean` | no       |             |

## Result

| Property        | Type      | Always present | Description |
| --------------- | --------- | -------------- | ----------- |
| `container`     | `string`  | no             |             |
| `environmentId` | `number`  | yes            |             |
| `id`            | `string`  | yes            |             |
| `lineCount`     | `number`  | yes            |             |
| `logs`          | `string`  | yes            |             |
| `namespace`     | `string`  | yes            |             |
| `podName`       | `string`  | yes            |             |
| `previous`      | `boolean` | no             |             |
| `sinceSeconds`  | `number`  | no             |             |
| `tailLines`     | `number`  | no             |             |
| `timestamps`    | `boolean` | no             |             |
