Consuming pod logs on Openshift with Filebeat2019 Community Moderator ElectionHow to have git log show filenames like svn log -vFilebeat with ELK stack running in Kubernetes does not capture pod name in logsHow to configure filebeat to handle log rotation?Filebeat not pushing logs to ElasticsearchGetting Docker logs in filebeatMulti-line logs into ES from filebeat deployed as Kubernetes DaemonsetMinimal filebeat config: syslog -> fileFilebeat 6.2 cannot parse json logs of docker containerFilebeat multiline patterCollect tomcat logs from tomcat docker container to Filebeat docker container

When a wind turbine does not produce enough electricity how does the power company compensate for the loss?

How many characters using PHB rules does it take to be able to have access to any PHB spell at the start of an adventuring day?

Virginia employer terminated employee and wants signing bonus returned

Recommendation letter by significant other if you worked with them professionally?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

What are some noteworthy "mic-drop" moments in math?

Can the alpha, lambda values of a glmnet object output determine whether ridge or Lasso?

Are small insurances worth it?

Why couldn't the separatists legally leave the Republic?

Outlet with 3 sets of wires

What is this diamond of every day?

What do you call someone who likes to pick fights?

Plausibility of Mushroom Buildings

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

What problems would a superhuman have who's skin is constantly hot?

Does a difference of tense count as a difference of meaning in a minimal pair?

I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?

Can one live in the U.S. and not use a credit card?

Is divide-by-zero a security vulnerability?

For which categories of spectra is there an explicit description of the fibrant objects via lifting properties?

I can't die. Who am I?

What is better: yes / no radio, or simple checkbox?

Are all players supposed to be able to see each others' character sheets?

Trig Subsitution When There's No Square Root



Consuming pod logs on Openshift with Filebeat



2019 Community Moderator ElectionHow to have git log show filenames like svn log -vFilebeat with ELK stack running in Kubernetes does not capture pod name in logsHow to configure filebeat to handle log rotation?Filebeat not pushing logs to ElasticsearchGetting Docker logs in filebeatMulti-line logs into ES from filebeat deployed as Kubernetes DaemonsetMinimal filebeat config: syslog -> fileFilebeat 6.2 cannot parse json logs of docker containerFilebeat multiline patterCollect tomcat logs from tomcat docker container to Filebeat docker container










0















I've configured filebeat instance, and when it was running without errors, I've figured out, it does nothing.



I've found in log the following line:



 INFO log/input.go:138 Configured paths: [/var/lib/docker/containers/*/*.log]


Quick check and I've found out, that the difference between openshift and pure docker is, that in docker the directories under /var/lib/docker/containers contains log files and under openshift they don't.



How should I configure filebeat to work under openshift?










share|improve this question


























    0















    I've configured filebeat instance, and when it was running without errors, I've figured out, it does nothing.



    I've found in log the following line:



     INFO log/input.go:138 Configured paths: [/var/lib/docker/containers/*/*.log]


    Quick check and I've found out, that the difference between openshift and pure docker is, that in docker the directories under /var/lib/docker/containers contains log files and under openshift they don't.



    How should I configure filebeat to work under openshift?










    share|improve this question
























      0












      0








      0








      I've configured filebeat instance, and when it was running without errors, I've figured out, it does nothing.



      I've found in log the following line:



       INFO log/input.go:138 Configured paths: [/var/lib/docker/containers/*/*.log]


      Quick check and I've found out, that the difference between openshift and pure docker is, that in docker the directories under /var/lib/docker/containers contains log files and under openshift they don't.



      How should I configure filebeat to work under openshift?










      share|improve this question














      I've configured filebeat instance, and when it was running without errors, I've figured out, it does nothing.



      I've found in log the following line:



       INFO log/input.go:138 Configured paths: [/var/lib/docker/containers/*/*.log]


      Quick check and I've found out, that the difference between openshift and pure docker is, that in docker the directories under /var/lib/docker/containers contains log files and under openshift they don't.



      How should I configure filebeat to work under openshift?







      docker logging openshift filebeat






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 14:19









      9ilsdx 9rvj 0lo9ilsdx 9rvj 0lo

      1,09411230




      1,09411230






















          1 Answer
          1






          active

          oldest

          votes


















          1














          AFAIK OpenShift also log out container logs as /var/lib/docker/containers/<hash>/*-json.log format, refer Viewing available container logs
          for more details. If you can not find out at the directory, your docker log driver might be configured as journald, it can check from /etc/sysconfig/docker.



          OPTIONS=' --selinux-enabled --log-driver=journald --signature-verification=False'


          Then you should change journald to json-file for logging into /var/lib/docker/containers/<hash>/*-json.log.



          OPTIONS=' --selinux-enabled --log-driver=json-file --signature-verification=False'


          you need to restart the docker.service for taking effect.






          share|improve this answer























          • OK at least I know what is happening. I would prefer less invasive solution, but it looks like there's no build-in support for journald for filebeat.

            – 9ilsdx 9rvj 0lo
            2 days ago











          • I understand you to prefer less changes for the configuration, what version is the OCP ? As of v3.9 the default log driver of docker is changed as json-file, so you can usually use the filebeat by your configuration you provided above. Refer docs.openshift.com/container-platform/3.9/release_notes/…

            – Daein Park
            2 days ago










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55025274%2fconsuming-pod-logs-on-openshift-with-filebeat%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          AFAIK OpenShift also log out container logs as /var/lib/docker/containers/<hash>/*-json.log format, refer Viewing available container logs
          for more details. If you can not find out at the directory, your docker log driver might be configured as journald, it can check from /etc/sysconfig/docker.



          OPTIONS=' --selinux-enabled --log-driver=journald --signature-verification=False'


          Then you should change journald to json-file for logging into /var/lib/docker/containers/<hash>/*-json.log.



          OPTIONS=' --selinux-enabled --log-driver=json-file --signature-verification=False'


          you need to restart the docker.service for taking effect.






          share|improve this answer























          • OK at least I know what is happening. I would prefer less invasive solution, but it looks like there's no build-in support for journald for filebeat.

            – 9ilsdx 9rvj 0lo
            2 days ago











          • I understand you to prefer less changes for the configuration, what version is the OCP ? As of v3.9 the default log driver of docker is changed as json-file, so you can usually use the filebeat by your configuration you provided above. Refer docs.openshift.com/container-platform/3.9/release_notes/…

            – Daein Park
            2 days ago















          1














          AFAIK OpenShift also log out container logs as /var/lib/docker/containers/<hash>/*-json.log format, refer Viewing available container logs
          for more details. If you can not find out at the directory, your docker log driver might be configured as journald, it can check from /etc/sysconfig/docker.



          OPTIONS=' --selinux-enabled --log-driver=journald --signature-verification=False'


          Then you should change journald to json-file for logging into /var/lib/docker/containers/<hash>/*-json.log.



          OPTIONS=' --selinux-enabled --log-driver=json-file --signature-verification=False'


          you need to restart the docker.service for taking effect.






          share|improve this answer























          • OK at least I know what is happening. I would prefer less invasive solution, but it looks like there's no build-in support for journald for filebeat.

            – 9ilsdx 9rvj 0lo
            2 days ago











          • I understand you to prefer less changes for the configuration, what version is the OCP ? As of v3.9 the default log driver of docker is changed as json-file, so you can usually use the filebeat by your configuration you provided above. Refer docs.openshift.com/container-platform/3.9/release_notes/…

            – Daein Park
            2 days ago













          1












          1








          1







          AFAIK OpenShift also log out container logs as /var/lib/docker/containers/<hash>/*-json.log format, refer Viewing available container logs
          for more details. If you can not find out at the directory, your docker log driver might be configured as journald, it can check from /etc/sysconfig/docker.



          OPTIONS=' --selinux-enabled --log-driver=journald --signature-verification=False'


          Then you should change journald to json-file for logging into /var/lib/docker/containers/<hash>/*-json.log.



          OPTIONS=' --selinux-enabled --log-driver=json-file --signature-verification=False'


          you need to restart the docker.service for taking effect.






          share|improve this answer













          AFAIK OpenShift also log out container logs as /var/lib/docker/containers/<hash>/*-json.log format, refer Viewing available container logs
          for more details. If you can not find out at the directory, your docker log driver might be configured as journald, it can check from /etc/sysconfig/docker.



          OPTIONS=' --selinux-enabled --log-driver=journald --signature-verification=False'


          Then you should change journald to json-file for logging into /var/lib/docker/containers/<hash>/*-json.log.



          OPTIONS=' --selinux-enabled --log-driver=json-file --signature-verification=False'


          you need to restart the docker.service for taking effect.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 13:10









          Daein ParkDaein Park

          1,19039




          1,19039












          • OK at least I know what is happening. I would prefer less invasive solution, but it looks like there's no build-in support for journald for filebeat.

            – 9ilsdx 9rvj 0lo
            2 days ago











          • I understand you to prefer less changes for the configuration, what version is the OCP ? As of v3.9 the default log driver of docker is changed as json-file, so you can usually use the filebeat by your configuration you provided above. Refer docs.openshift.com/container-platform/3.9/release_notes/…

            – Daein Park
            2 days ago

















          • OK at least I know what is happening. I would prefer less invasive solution, but it looks like there's no build-in support for journald for filebeat.

            – 9ilsdx 9rvj 0lo
            2 days ago











          • I understand you to prefer less changes for the configuration, what version is the OCP ? As of v3.9 the default log driver of docker is changed as json-file, so you can usually use the filebeat by your configuration you provided above. Refer docs.openshift.com/container-platform/3.9/release_notes/…

            – Daein Park
            2 days ago
















          OK at least I know what is happening. I would prefer less invasive solution, but it looks like there's no build-in support for journald for filebeat.

          – 9ilsdx 9rvj 0lo
          2 days ago





          OK at least I know what is happening. I would prefer less invasive solution, but it looks like there's no build-in support for journald for filebeat.

          – 9ilsdx 9rvj 0lo
          2 days ago













          I understand you to prefer less changes for the configuration, what version is the OCP ? As of v3.9 the default log driver of docker is changed as json-file, so you can usually use the filebeat by your configuration you provided above. Refer docs.openshift.com/container-platform/3.9/release_notes/…

          – Daein Park
          2 days ago





          I understand you to prefer less changes for the configuration, what version is the OCP ? As of v3.9 the default log driver of docker is changed as json-file, so you can usually use the filebeat by your configuration you provided above. Refer docs.openshift.com/container-platform/3.9/release_notes/…

          – Daein Park
          2 days ago



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55025274%2fconsuming-pod-logs-on-openshift-with-filebeat%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко