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

Provide ability to configure a static tenant in forwarder configuration

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • Logging 5.5.0
    • Log Collection
    • False
    • False
    • NEW
    • OBSDA-7 - Adopting Loki as an alternative to Elasticsearch to support more lightweight, easier to manage/operate storage scenarios
    • NEW
    • Hide
      Add new TenantID field to loki struct, change default behavior as described in the API doc below:

      // TenantKey identifies a log record field to use as the Loki tenant-ID.
      //
      // Default: 'log_type', tenant ID is one of [application, infrastructure, audit]
      //
      // +optional
      TenantKey string `json:"tenantKey,omitempty"`

      // TenantID is a fixed string value to use as the Loki tenant-ID.
      //
      // The special value '-' means use single-tenant mode, no tenant ID.
      //
      // +optional
      TenantID string `json:"tenantID,omitempty"`

      Show
      Add new TenantID field to loki struct, change default behavior as described in the API doc below: // TenantKey identifies a log record field to use as the Loki tenant-ID. // // Default: 'log_type', tenant ID is one of [application, infrastructure, audit] // // +optional TenantKey string `json:"tenantKey,omitempty"` // TenantID is a fixed string value to use as the Loki tenant-ID. // // The special value '-' means use single-tenant mode, no tenant ID. // // +optional TenantID string `json:"tenantID,omitempty"`
    • Logging (Core) - Sprint 219, Logging (Core) - Sprint 220, Log Collection - Sprint 221

      1. Add a new "TenantID" field to the Loki output struct, to allow the user to specify a fixed tenant value.
      2. Update both Fluentd and Vector forwarder implementations to conform to this API doc, in particular:
        1. Default behaviour is equivalent to 'TenantKey: log_type'
        2. Special TenantID value '-' means use single-tenant mode, no tenant ID.
      type Loki struct {
          // TenantKey identifies a log record field to use as the Loki tenant-ID.
          //
          // Default: 'log_type' (one of [application, infrastructure, audit])
          //
          // +optional
          TenantKey string `json:"tenantKey,omitempty"`    
      
          // TenantID is a fixed string value to use as the Loki tenant-ID.
          //
          // The special value '-' means use single-tenant mode, no tenant ID.
          //
          // +optional
          TenantID string `json:"tenantID,omitempty"` 

              rhn-engineering-aconway Alan Conway
              rojacob@redhat.com Robert Jacob
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: