Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-2811

Add lokistack output type to cluster forwarder

    XMLWordPrintable

Details

    • Story
    • Resolution: Unresolved
    • Critical
    • Logging 6.0.0
    • None
    • Log Collection
    • None
    • False
    • None
    • False
    • NEW
    • OBSDA-550 - Updated APIs for Logging 6.0
    • NEW
    • Log Collection - Sprint 221

    Description

      Story

      Forward logs to LokiStack using a single "lokistack" output entry for all tenants.

      Currently we set up a relatively complicated trio of plain loki outputs behind the scenes of the "default" output.
      This would not be easy to explain to users, or to maintain if lokistack changes its tenancy model.

      Note

      Differences between LokiStack and "plain loki"

      • The Loki and LokiStack APIs use the same trailing path parts for request URL but have different bases.
      • LokiStack includes the tenant in the URL path, plain Loki  passes it as a HTTP Header.
      • For lokistack, sending a stream of mixed log types requires separating it into single-type batches and making multiple requests.
      • LokiStack requres 3 separate queries, the results need to be collated by timestamp to make the result look like a single query.

      The Loki and LokiStack outputs can use mostly the same code, the LokiStack output has some additional complications:

      • creating the 3 separate loki sinks (one per tenant) for a single user-configured CLF output
      • separate logs arriving at the output and forward them to  the correct sinks.
      • ensure all 3 sinks participate together in flow control, acknowledgements, performance tuning and other "per output" configuration. The result should "as if" there were a single sink, or as close as is reasonably possible.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-engineering-aconway Alan Conway
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: