Error "failed to update state in the registry"

Hello!

I have a strange error using httpjson-input plugin in filebeat. Everything works fine, I was getting data updates via cursor until now. Now in logs everytime request finished with > 0 events published I get an error:
Nov 11 18:04:31 sdg-logstash.test filebeat[14729]: 2021-11-11T18:04:31.167+0300 ERROR [input] input-cursor/publish.go:147 Failed to update state in the registry for 'httpjson::https://test.zone/api/data?cursor=123129_12374849' {"input_type": "httpjson"}

my .yml file:

- type: httpjson
  config_version: 2
  interval: 1m
  request.url: https://test.zone/api/data?cursor=123129_12374849
  request.method: GET
  cursor:
    last_execution_update:
      value: '[[.last_response.body.next_cursor]]'
  request.transforms:
    - set:
        target: url.params.cursor
        value: '[[.cursor.last_execution_update]]'

Most likely this is because it does not have access to write to the cursor, maybe another software has it open already, or for some reason it has lost permissions to it.

Registry files are usually stored in /var/lib/filebeat/* by default, so maybe you can check the ownership of that?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.