Kapacitor-stream: window().every not working but window().everyCount works

Hi, I have the following tick script which it dint run as expected:

dbrp "database"."autogen"

stream
    |from()
        .database('database')
        .measurement('beacon_data')
    |window()
        .period(10s)
        .every(10s)
    |groupBy('userId', 'locationId')
    |mean('rssi')
        .as('rssi_mean')
    |groupBy('userId')
    |max('rssi_mean')
        .as('rssi_max')
    |influxDBOut()
        .database('database_kapacitor')
        .retentionPolicy('autogen')

but if I change the |window() function to below, it works:
|window() .periodCount(10) .everyCount(10)

Im using influxDB ver1.5.2 & Kapacitor ver1.5.0

solved, it’s my wrong configuration error.

1 Like