---
title: nrSetHarvestTimeLogs
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrsetharvesttimelogs
---

## Syntax

```js
  nrSetHarvestTimeLogs(nr as Object, time as Integer) as Void
```

## Description

Set harvest time for Logs, the time the logs are buffered before being sent to New Relic. Min value is 60.

## Arguments

| Arguments | Description             |
| --------- | ----------------------- |
| `nr`      | New Relic Agent object. |
| `time`    | Time in seconds.        |

## Return

Nothing.

## Example

```js
  	nrSetHarvestTimeLogs(m.nr, 60)
```
