Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Monolog elasticsearch date processor

Security covered Maintenance fixes only 122 sites

Part of the Monolog ecosystem · 6 projects

This module adds a field to your logs that can be directly ingested by Elasticsearch without additional parsing. It appends an `elasticsearch_date` field to your log entries, making it easier to integrate with Elasticsearch ingestion pipelines.

Append a field to your logs that you can ingest directly into elasticsearch with no dissect or parsing magic

Usage:

In your services file you append it as a monolog processor. So for example if your service parameters look like this:

parameters:
  monolog.channel_handlers:
    default: ['file']
  monolog.processors: ['message_placeholder', 'current_user', 'request_uri', 'ip', 'referer']

Change it to this:

parameters:
  monolog.channel_handlers:
    default: ['file']
  monolog.processors: ['message_placeholder', 'current_user', 'request_uri', 'ip', 'referer', 'elasticsearch_date']

This will give you an additional field called extra.elasticsearch_date. If you are sending this field directly to elasticsearch from filebeat, you can use it like this (example):

processors:
      - timestamp:
          ignore_missing: true
          ignore_failure: true
          field: extra.elasticsearch_date
          timezone: "Europe/Oslo"
          layouts:
            - '2006-01-02T15:04:05Z'
            - '2020-06-02T13:20:50.516Z'
          test:
            - '2019-06-22T16:33:51Z'
            - '2020-06-02T13:20:50.516Z'
Drupal 8–11

Ask your assistant about Monolog elasticsearch date processor

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Nov 2023
Latest release
9 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0 Stable 8–11 Dec 17, 2025
2.0.x-dev Dev 8–11 Dec 17, 2025
1.0.7 Stable 8–11 Oct 16, 2024
1.0.6 Stable 8–11 Jul 31, 2024
1.0.5 Stable 8–11 Mar 27, 2024
1.0.4 Stable 8–10 Nov 7, 2023