Entity_id: logbook not working

Hello fellows,
this sensor was working well until recently. Now I get this error:

Invalid config for 'history_stats' from integration 'sensor' at configuration.yaml, line 32: Entity ID logbook is an invalid entity ID for dictionary value 'entity_id', got 'logbook'

Do you have any suggestions why it may have stopped?
I am trying to track failed login attemps.

 sensor:
  - platform: history_stats
    name: Failed Login Attempts
    entity_id: logbook
    state: 'Failed login attempt for user'
    type: count
    start: '{{ now().replace(hour=0, minute=0, second=0, microsecond=0) }}'
    end: '{{ now() }}'

Thank you in advance.