Skip to content
Snippets Groups Projects
  1. Feb 11, 2022
  2. Dec 28, 2021
    • Radosław Piliszek's avatar
      Fluentd cleanup · df2a29e4
      Radosław Piliszek authored
      We no longer have to support multiple fluentd versions and rely
      on the workaround.
      
      Change-Id: Id4083a9f07317fc04467e52176850f3909703169
      df2a29e4
  3. Sep 27, 2021
  4. Oct 12, 2020
    • James Kirsch's avatar
      Add support for encrypting backend Neutron API Server · 93ad57f4
      James Kirsch authored
      Add TLS support for backend Neutron API Server communication using
      HAProxy to perform TLS termination. When used in conjunction with
      enabling TLS for service API endpoints, network communication will be
      encrypted end to end, from client through HAProxy to the Neutron
      service.
      
      Change-Id: Ib333a1f1bd12491df72a9e52d961161210e2d330
      Partially-Implements: blueprint add-ssl-internal-network
      93ad57f4
  5. Sep 18, 2020
  6. Jul 28, 2020
    • Mark Goddard's avatar
      Performance: use a single config file for fluentd · 56a07702
      Mark Goddard authored
      Currently we generate multiple fluentd configuration files for inputs,
      filters, formatters and outputs.
      These are then included from the main td-agent.conf configuration file.
      With a large number of hosts, this can take a long time to template.
      
      Benchmarking of templating is available at [1].
      
      This change switches to a single fluentd configuration file, with the
      include done locally. For the default template files included with Kolla
      Ansible we use Jinja includes, but this does not work with templates in
      a different directory. We therefore use the Ansible template lookup
      plugin, which has a slightly higher overhead than a jinja include, but
      far lower than generating multiple templates. This should drastically
      improve the performance of this task.
      
      [1] https://github.com/stackhpc/ansible-scaling/blob/master/doc/template.md
      
      Partially-Implements: blueprint performance-improvements
      
      Change-Id: Ia8623be0aa861fea3e54d2c9e1c971dfd8e3afa9
      56a07702
  7. Jul 27, 2020
    • Michal Nasiadka's avatar
      fluentd: log to a file instead of stdout · 696533f2
      Michal Nasiadka authored
      fluentd logs currently to stdout, which is known to produce big docker logs
      in /var/lib/docker. This change makes fluentd to log to /var/log/kolla/fluentd.
      
      Closes-Bug: #1888852
      Change-Id: I8fe0e54cb764a26d26c6196cef68aadc6fd57b90
      696533f2
  8. Mar 17, 2020
    • Doug Szumski's avatar
      Make Fluentd config folders readable · c92378d7
      Doug Szumski authored
      Currently, config folders lack the execute bit so Fluentd
      cannot read the config and just does nothing when it starts up. This
      change explicitly sets the execute bit on folders which need it,
      rather than doing it in a more generic way which is more risky from
      a security perspective.
      
      Change-Id: Ia840f4b67043df4eaa654f47673dcdc973f13d9c
      Closes-Bug: #1867754
      c92378d7
  9. Mar 10, 2020
    • Will Szumski's avatar
      Use macro to avoid repetition · a1c51b73
      Will Szumski authored
      I didn't use a for loop as the logic for omitting the
      comma for the final element dirties the logic.
      
      Change-Id: Id29d5deebcc5126d69a1bd8395e0df989f2081f0
      a1c51b73
    • Will Szumski's avatar
      Delete stale fluent config on restart · e7870e9d
      Will Szumski authored
      We already only include .conf files in fluent.conf:
      
      (fluentd)[fluentd@cpu-e-1041 /etc/fluentd]$ cat fluent.conf
      @include input/*.conf
      @include filter/*.conf
      @include format/*.conf
      @include output/*.conf
      
      so this change should not cause ill effect. This works because of the
      merge option in config files:
      
      merge: merges the source directory into the target directory instead of
      replacing it. Boolean, defaults to false.
      
      see https://docs.openstack.org/kolla/latest/admin/kolla_api.html#kolla-api-external-config
      
      Change-Id: I28f63ec81f1ea5bc4a213d053bfb2c04388d5925
      Closes-Bug: #1862211
      e7870e9d
  10. Dec 09, 2019
  11. Aug 22, 2019
  12. Mar 08, 2019
    • Doug Szumski's avatar
      Support customising Fluentd formatting · c8a22f10
      Doug Szumski authored
      In some scenarios it may be useful to perform custom formatting of logs
      before forwarding them. For example, the JSON formatter plugin can be
      used to convert an event to JSON.
      
      Change-Id: I3dd9240c5910a9477456283b392edc9566882dcd
      c8a22f10
  13. Mar 07, 2019
  14. Feb 22, 2019
  15. Nov 20, 2018
    • Eduardo Gonzalez's avatar
      Fix fluentd input log parser for OpenDaylight · 76482c9a
      Eduardo Gonzalez authored
      OpenDaylight logs have different format than openstack,
      is a karaf log with java error traces.
      This PS add required config to make fluentd parse properly
      ODL logs.
      
      Change-Id: I34fb96c8a424679b3b618f2ff6a840b8dc165bec
      76482c9a
  16. Sep 11, 2018
  17. Apr 16, 2018
    • Doug Szumski's avatar
      Add support for deploying Kafka · 6647ed81
      Doug Szumski authored
      Projects which may use Kafka include Monasca and Oslo
      messaging. Initially it will be possible to
      deploy a single Kafka cluster which may be shared
      among clients. Support for running multiple Kafka
      clusters may be added in a future change. This
      change also configures logging for Kafka server,
      state-change and controller logs.
      
      Partially-Implements: blueprint monasca-roles
      Change-Id: Iab8d200c2450238f3c0c708d1f4184490f6e6284
      6647ed81
  18. Mar 23, 2018
  19. Nov 23, 2017
    • Mark Goddard's avatar
      Support configuration of custom fluentd filters · f12e7244
      Mark Goddard authored
      In some scenarios it may be useful to apply custom filters to logs
      before forwarding them.  This may be useful to add additional tags to
      the messages or to modify the tags to conform to a log format that
      differs from the one defined by kolla-ansible.
      
      Configuration of custom fluentd filters is possible by placing filter
      configuration files in ``/etc/kolla/config/fluentd/filter/*.conf`` on
      the ansible control host.
      
      Change-Id: I29a20efb0df4bf3564ef009616c786e928aa26d9
      Implements: blueprint fluentd-custom-filters
      f12e7244
  20. Sep 13, 2017
    • Mark Goddard's avatar
      Support configuration of custom fluentd outputs · fb465146
      Mark Goddard authored
      In some scenarios it may be useful to configure custom fluentd outputs
      to forward logs to a logging service other than elasticsearch.
      
      This change supports configuration of fluentd outputs by placing
      output configuration files in /etc/kolla/config/fluentd/output/*.conf.
      
      Change-Id: I3c0b271d88dbb307ba3a23546e29c72e8baeca55
      Implements: blueprint fluentd-custom-outputs
      fb465146
  21. Sep 04, 2017
    • Bertrand Lallau's avatar
      Fluentd: Libvirt logs are missing · 792ab714
      Bertrand Lallau authored
      Libvirt logs are not managed by Fluentd. It can be very helpful to
      debug 'booting' issue on KVM.
      
      Change-Id: Ie04322adec0482f4d586d2f8564a1a77f2da2605
      Closes-Bug: #1713429
      792ab714
    • Bertrand Lallau's avatar
      Fluentd: manage multiline log pattern · 38a6d304
      Bertrand Lallau authored
      Actual Fluentd config doesn't manage multiline log pattern like:
      
      2017-08-16 21:41:03.097 7 WARNING oslo_config.cfg [-] Option "firewall_driver" from group "DEFAULT" is deprecated for removal (
      nova-network is deprecated, as are any related configuration options.
      ). Its value may be silently ignored in the future.
      
      This log will generate 1 Fluentd event for each line (in previous
      example 3 events).
      This is really a wrong behaviour and made Kibana interface not friendly.
      This patch uses a multiline parser.
      
      Change-Id: Iee337645d1dc42876ec79be08ee3715f11a53d87
      Closes-Bug: #1711399
      38a6d304
  22. Aug 29, 2017
    • Bertrand Lallau's avatar
      Fluentd: rework and fix tail source config · eab91d42
      Bertrand Lallau authored
      Actually a unique 'tail' source is used for all logs files in
      kolla/*/*.log.
      
      So log files from services like: chrony, elasticsearch, etcd, grafana,
      influxdb, kibana, mongodb... are actually processed by our Fluentd
      config, but should not cause all following config will failed to parse
      them. It just uses CPU for nothing cause they will
      never match the following filters:
      * record_transformer => add Hostname, Logger, programname field
      * rewrite_tag_filter => rewrite 'programname' TAG if needed
      
      Hence these filters should only be applied to Openstack services logs to
      avoid CPU usage.
      
      Furthermore WGI and Apache logs files must be treated differently.
      
      Change-Id: I425979160291e1123e3775e39243bca06ed22c2f
      Closes-Bug: #1711390
      eab91d42
  23. Aug 21, 2017
    • Eduardo Gonzalez's avatar
      Update fluentd config for rpm distros · 1d5bd219
      Eduardo Gonzalez authored
      Fluentd repo/packages are changed in depends changes below.
      Rpm distros need changes in their config for properly
      start and deploy fluentd containers.
      
      Change-Id: I474c4d20c407717c6da973383bbbd5539be480f1
      Depends-On: I4802618373cfa53d67d1dfe65be7abe1950b3d04
      1d5bd219
  24. Mar 20, 2017
    • Graeme Seaton's avatar
      Set fluentd output to elasticsearch to use elasticsearch_address · 7f3cab65
      Graeme Seaton authored
      Haproxy binds the elasticsearch service to kolla_internal_vip_address but
      the output templates for fluentd (td-agent) point to a non-existent
      kolla_external_vip_address.
      
      Output should also be able to be sent to an external elasticsearch
      instance (as per the documentation regarding overriding
      elasticsearch_address)
      
      Change these settings so that fluentd outputs to either
      the default elasticsearch_address (i.e. kolla_internal_vip_address) or to
      the external elasticsearch instance.
      
      Closes-Bug: #1673990
      Change-Id: I081533ae8ea9aad186e9c44e1dee069729931453
      7f3cab65
  25. Feb 16, 2017
  26. Feb 15, 2017
  27. Feb 04, 2017
  28. Jan 24, 2017
    • zhubingbing's avatar
      Add fluentd role · d3d4a933
      zhubingbing authored
      
      * add fluentd role
      * remove heka configure
      
      Co-Authored-By: default avataryangzb09 <yangzb09@qq.com>
      
      Partially-Implements: blueprint add-fluentd-role
      
      Change-Id: Ica804a99f5bb8b157f406299c5982b7b6283b3e3
      d3d4a933
Loading