elasticsearch jobs fail when not indice for an expected log type exists in RHOCP 4

Solution Verified - Updated -

Issue

  • Cronjob elasticsearch-im-<type> continues to fail every time when <type> logs are not sent to logStore:

    $ oc get pods -n openshift-logging | grep -i elasticsearch-im
    elasticsearch-im-app-xxxxx-xxxxx            0/1     Completed   0          2m24s
    elasticsearch-im-audit-xxxxx-xxxxx          0/1     Error       0          2m24s
    elasticsearch-im-infra-xxxxx-xxxxx          0/1     Completed   0          2m24s 
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5.8.1 and newer versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content