---
title: Harvest configuration
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/overview
---

## Harvest configuration methods

| Method                                                                                                                                      | Description                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| [nrSetHarvestTime](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrsetharvesttime)               | Set harvest time, the time the samples are buffered before being sent to New Relic for both Events and Logs. Min value is 60. |
| [nrSetHarvestTimeEvents](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrsetharvesttimeevents)   | Set harvest time for Events, the time the events are buffered before being sent to New Relic. Min value is 60.                |
| [nrSetHarvestTimeLogs](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrsetharvesttimelogs)       | Set harvest time for Logs, the time the logs are buffered before being sent to New Relic. Min value is 60.                    |
| [nrSetHarvestTimeMetrics](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrsetharvesttimemetrics) | Set harvest time for Logs, the time the logs are buffered before being sent to New Relic. Min value is 60.                    |
| [nrForceHarvest](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrforceharvest)                   | Do harvest events and logs immediately. It doesn't reset the harvest timer.                                                   |
| [nrForceHarvestEvents](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrforceharvestevents)       | Do harvest events immediately. It doesn't reset the harvest timer.                                                            |
| [nrForceHarvestLogs](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/harvest/nrforceharvestlogs)           | Do harvest logs immediately. It doesn't reset the harvest timer.                                                              |

## Examples

### nrSetHarvestTime

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

### nrSetHarvestTimeEvents

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

### nrSetHarvestTimeLogs

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

### nrSetHarvestTimeMetrics

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

### nrForceHarvest

```js
  	nrForceHarvest(m.nr)
```

### nrForceHarvestEvents

```js
  	nrForceHarvestEvents(m.nr)
```

### nrForceHarvestLogs

```js
  	nrForceHarvestLogs(m.nr)
```
