Exporting logs out of loganalaysis ibm cloud












1















Is there a way to export logs out of IBM Cloud? Mainly activity logs which come from Activity Tracker. Also, does anyone know where these logs are stored? I can only view them inside Kibana but dont see any storage associated with it.



I tried



ibmcloud logging log-show but it errors out as: 
read: connection reset by peer









share|improve this question



























    1















    Is there a way to export logs out of IBM Cloud? Mainly activity logs which come from Activity Tracker. Also, does anyone know where these logs are stored? I can only view them inside Kibana but dont see any storage associated with it.



    I tried



    ibmcloud logging log-show but it errors out as: 
    read: connection reset by peer









    share|improve this question

























      1












      1








      1








      Is there a way to export logs out of IBM Cloud? Mainly activity logs which come from Activity Tracker. Also, does anyone know where these logs are stored? I can only view them inside Kibana but dont see any storage associated with it.



      I tried



      ibmcloud logging log-show but it errors out as: 
      read: connection reset by peer









      share|improve this question














      Is there a way to export logs out of IBM Cloud? Mainly activity logs which come from Activity Tracker. Also, does anyone know where these logs are stored? I can only view them inside Kibana but dont see any storage associated with it.



      I tried



      ibmcloud logging log-show but it errors out as: 
      read: connection reset by peer






      logging ibm-cloud log-analysis






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 18:28









      NoviceMeNoviceMe

      71983786




      71983786
























          1 Answer
          1






          active

          oldest

          votes


















          2














          First of all, you must choose a premium plan to make API calls and export the logs from Activity Trackerenter image description here



          Once you create the Activity Tracker service, you can use the CLI to export the logs by creating a session



          ibmcloud at session help create                                                                                                           
          NAME:
          bx at session create - Create a new session
          USAGE:
          bx at session create [command options] [arguments...]

          OPTIONS:
          --start value, -s value start date, in format 2006-01-02 (default: "2018-11-09")
          --end value, -e value end date, in format 2006-01-02 (default: "2018-11-22")
          --at-account-level, -a include entire account (default: current space only)
          -T value, --search-time value Specify search time with the hour of one day, the valid value is 0-23
          --json output in JSON format


          Eg., ibmcloud at session create -s 2018-11-21 -e 2018-11-22 --json



          Once the session is created, it returns a session id.



          You can download the logs using this command



          ibmcloud at download -o events.log <SESSION_ID>


          For more details on downloading the events, refer this link



          You can also make a REST API call to download the events



          Update: Reading through the documentation in-depth, I found out where the data is stored.




          The Activity Tracker service includes 2 data repositories where your
          event data is stored:



          One repository where event data is available for analysis through
          Kibana. The standard or lite plan only stores data in this repository.
          Data is kept for 3 days.



          One long-term storage repository that hosts
          the event data for the premium plan. Event data is stored until you
          either configure a retention policy or delete them manually. By
          default, events are kept indefinitely.




          The storage is encrypted. Also, to configure the retention policy read this link






          share|improve this answer


























          • This is paid? Is there free service? Plus it is not continuous, I need a permanent connection to push logs outside?

            – NoviceMe
            Nov 23 '18 at 12:57











          • Yes, Premium is paid. There is a Lite(free) plan but with limitations. You can find more information about the plans and what they offer here- console.bluemix.net/docs/services/cloud-activity-tracker/…

            – Vidyasagar Machupalli
            Nov 23 '18 at 13:50













          • Is there a way to continuously stream out data from paid plan?

            – NoviceMe
            Nov 23 '18 at 17:36











          • Getting following error: x509: certificate signed by unknown authority, running above command.

            – NoviceMe
            Nov 26 '18 at 15:53











          • Can I know the exact command you are trying??

            – Vidyasagar Machupalli
            Nov 27 '18 at 0:24












          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%2f53418418%2fexporting-logs-out-of-loganalaysis-ibm-cloud%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









          2














          First of all, you must choose a premium plan to make API calls and export the logs from Activity Trackerenter image description here



          Once you create the Activity Tracker service, you can use the CLI to export the logs by creating a session



          ibmcloud at session help create                                                                                                           
          NAME:
          bx at session create - Create a new session
          USAGE:
          bx at session create [command options] [arguments...]

          OPTIONS:
          --start value, -s value start date, in format 2006-01-02 (default: "2018-11-09")
          --end value, -e value end date, in format 2006-01-02 (default: "2018-11-22")
          --at-account-level, -a include entire account (default: current space only)
          -T value, --search-time value Specify search time with the hour of one day, the valid value is 0-23
          --json output in JSON format


          Eg., ibmcloud at session create -s 2018-11-21 -e 2018-11-22 --json



          Once the session is created, it returns a session id.



          You can download the logs using this command



          ibmcloud at download -o events.log <SESSION_ID>


          For more details on downloading the events, refer this link



          You can also make a REST API call to download the events



          Update: Reading through the documentation in-depth, I found out where the data is stored.




          The Activity Tracker service includes 2 data repositories where your
          event data is stored:



          One repository where event data is available for analysis through
          Kibana. The standard or lite plan only stores data in this repository.
          Data is kept for 3 days.



          One long-term storage repository that hosts
          the event data for the premium plan. Event data is stored until you
          either configure a retention policy or delete them manually. By
          default, events are kept indefinitely.




          The storage is encrypted. Also, to configure the retention policy read this link






          share|improve this answer


























          • This is paid? Is there free service? Plus it is not continuous, I need a permanent connection to push logs outside?

            – NoviceMe
            Nov 23 '18 at 12:57











          • Yes, Premium is paid. There is a Lite(free) plan but with limitations. You can find more information about the plans and what they offer here- console.bluemix.net/docs/services/cloud-activity-tracker/…

            – Vidyasagar Machupalli
            Nov 23 '18 at 13:50













          • Is there a way to continuously stream out data from paid plan?

            – NoviceMe
            Nov 23 '18 at 17:36











          • Getting following error: x509: certificate signed by unknown authority, running above command.

            – NoviceMe
            Nov 26 '18 at 15:53











          • Can I know the exact command you are trying??

            – Vidyasagar Machupalli
            Nov 27 '18 at 0:24
















          2














          First of all, you must choose a premium plan to make API calls and export the logs from Activity Trackerenter image description here



          Once you create the Activity Tracker service, you can use the CLI to export the logs by creating a session



          ibmcloud at session help create                                                                                                           
          NAME:
          bx at session create - Create a new session
          USAGE:
          bx at session create [command options] [arguments...]

          OPTIONS:
          --start value, -s value start date, in format 2006-01-02 (default: "2018-11-09")
          --end value, -e value end date, in format 2006-01-02 (default: "2018-11-22")
          --at-account-level, -a include entire account (default: current space only)
          -T value, --search-time value Specify search time with the hour of one day, the valid value is 0-23
          --json output in JSON format


          Eg., ibmcloud at session create -s 2018-11-21 -e 2018-11-22 --json



          Once the session is created, it returns a session id.



          You can download the logs using this command



          ibmcloud at download -o events.log <SESSION_ID>


          For more details on downloading the events, refer this link



          You can also make a REST API call to download the events



          Update: Reading through the documentation in-depth, I found out where the data is stored.




          The Activity Tracker service includes 2 data repositories where your
          event data is stored:



          One repository where event data is available for analysis through
          Kibana. The standard or lite plan only stores data in this repository.
          Data is kept for 3 days.



          One long-term storage repository that hosts
          the event data for the premium plan. Event data is stored until you
          either configure a retention policy or delete them manually. By
          default, events are kept indefinitely.




          The storage is encrypted. Also, to configure the retention policy read this link






          share|improve this answer


























          • This is paid? Is there free service? Plus it is not continuous, I need a permanent connection to push logs outside?

            – NoviceMe
            Nov 23 '18 at 12:57











          • Yes, Premium is paid. There is a Lite(free) plan but with limitations. You can find more information about the plans and what they offer here- console.bluemix.net/docs/services/cloud-activity-tracker/…

            – Vidyasagar Machupalli
            Nov 23 '18 at 13:50













          • Is there a way to continuously stream out data from paid plan?

            – NoviceMe
            Nov 23 '18 at 17:36











          • Getting following error: x509: certificate signed by unknown authority, running above command.

            – NoviceMe
            Nov 26 '18 at 15:53











          • Can I know the exact command you are trying??

            – Vidyasagar Machupalli
            Nov 27 '18 at 0:24














          2












          2








          2







          First of all, you must choose a premium plan to make API calls and export the logs from Activity Trackerenter image description here



          Once you create the Activity Tracker service, you can use the CLI to export the logs by creating a session



          ibmcloud at session help create                                                                                                           
          NAME:
          bx at session create - Create a new session
          USAGE:
          bx at session create [command options] [arguments...]

          OPTIONS:
          --start value, -s value start date, in format 2006-01-02 (default: "2018-11-09")
          --end value, -e value end date, in format 2006-01-02 (default: "2018-11-22")
          --at-account-level, -a include entire account (default: current space only)
          -T value, --search-time value Specify search time with the hour of one day, the valid value is 0-23
          --json output in JSON format


          Eg., ibmcloud at session create -s 2018-11-21 -e 2018-11-22 --json



          Once the session is created, it returns a session id.



          You can download the logs using this command



          ibmcloud at download -o events.log <SESSION_ID>


          For more details on downloading the events, refer this link



          You can also make a REST API call to download the events



          Update: Reading through the documentation in-depth, I found out where the data is stored.




          The Activity Tracker service includes 2 data repositories where your
          event data is stored:



          One repository where event data is available for analysis through
          Kibana. The standard or lite plan only stores data in this repository.
          Data is kept for 3 days.



          One long-term storage repository that hosts
          the event data for the premium plan. Event data is stored until you
          either configure a retention policy or delete them manually. By
          default, events are kept indefinitely.




          The storage is encrypted. Also, to configure the retention policy read this link






          share|improve this answer















          First of all, you must choose a premium plan to make API calls and export the logs from Activity Trackerenter image description here



          Once you create the Activity Tracker service, you can use the CLI to export the logs by creating a session



          ibmcloud at session help create                                                                                                           
          NAME:
          bx at session create - Create a new session
          USAGE:
          bx at session create [command options] [arguments...]

          OPTIONS:
          --start value, -s value start date, in format 2006-01-02 (default: "2018-11-09")
          --end value, -e value end date, in format 2006-01-02 (default: "2018-11-22")
          --at-account-level, -a include entire account (default: current space only)
          -T value, --search-time value Specify search time with the hour of one day, the valid value is 0-23
          --json output in JSON format


          Eg., ibmcloud at session create -s 2018-11-21 -e 2018-11-22 --json



          Once the session is created, it returns a session id.



          You can download the logs using this command



          ibmcloud at download -o events.log <SESSION_ID>


          For more details on downloading the events, refer this link



          You can also make a REST API call to download the events



          Update: Reading through the documentation in-depth, I found out where the data is stored.




          The Activity Tracker service includes 2 data repositories where your
          event data is stored:



          One repository where event data is available for analysis through
          Kibana. The standard or lite plan only stores data in this repository.
          Data is kept for 3 days.



          One long-term storage repository that hosts
          the event data for the premium plan. Event data is stored until you
          either configure a retention policy or delete them manually. By
          default, events are kept indefinitely.




          The storage is encrypted. Also, to configure the retention policy read this link







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 27 '18 at 5:15

























          answered Nov 22 '18 at 2:45









          Vidyasagar MachupalliVidyasagar Machupalli

          1,1461818




          1,1461818













          • This is paid? Is there free service? Plus it is not continuous, I need a permanent connection to push logs outside?

            – NoviceMe
            Nov 23 '18 at 12:57











          • Yes, Premium is paid. There is a Lite(free) plan but with limitations. You can find more information about the plans and what they offer here- console.bluemix.net/docs/services/cloud-activity-tracker/…

            – Vidyasagar Machupalli
            Nov 23 '18 at 13:50













          • Is there a way to continuously stream out data from paid plan?

            – NoviceMe
            Nov 23 '18 at 17:36











          • Getting following error: x509: certificate signed by unknown authority, running above command.

            – NoviceMe
            Nov 26 '18 at 15:53











          • Can I know the exact command you are trying??

            – Vidyasagar Machupalli
            Nov 27 '18 at 0:24



















          • This is paid? Is there free service? Plus it is not continuous, I need a permanent connection to push logs outside?

            – NoviceMe
            Nov 23 '18 at 12:57











          • Yes, Premium is paid. There is a Lite(free) plan but with limitations. You can find more information about the plans and what they offer here- console.bluemix.net/docs/services/cloud-activity-tracker/…

            – Vidyasagar Machupalli
            Nov 23 '18 at 13:50













          • Is there a way to continuously stream out data from paid plan?

            – NoviceMe
            Nov 23 '18 at 17:36











          • Getting following error: x509: certificate signed by unknown authority, running above command.

            – NoviceMe
            Nov 26 '18 at 15:53











          • Can I know the exact command you are trying??

            – Vidyasagar Machupalli
            Nov 27 '18 at 0:24

















          This is paid? Is there free service? Plus it is not continuous, I need a permanent connection to push logs outside?

          – NoviceMe
          Nov 23 '18 at 12:57





          This is paid? Is there free service? Plus it is not continuous, I need a permanent connection to push logs outside?

          – NoviceMe
          Nov 23 '18 at 12:57













          Yes, Premium is paid. There is a Lite(free) plan but with limitations. You can find more information about the plans and what they offer here- console.bluemix.net/docs/services/cloud-activity-tracker/…

          – Vidyasagar Machupalli
          Nov 23 '18 at 13:50







          Yes, Premium is paid. There is a Lite(free) plan but with limitations. You can find more information about the plans and what they offer here- console.bluemix.net/docs/services/cloud-activity-tracker/…

          – Vidyasagar Machupalli
          Nov 23 '18 at 13:50















          Is there a way to continuously stream out data from paid plan?

          – NoviceMe
          Nov 23 '18 at 17:36





          Is there a way to continuously stream out data from paid plan?

          – NoviceMe
          Nov 23 '18 at 17:36













          Getting following error: x509: certificate signed by unknown authority, running above command.

          – NoviceMe
          Nov 26 '18 at 15:53





          Getting following error: x509: certificate signed by unknown authority, running above command.

          – NoviceMe
          Nov 26 '18 at 15:53













          Can I know the exact command you are trying??

          – Vidyasagar Machupalli
          Nov 27 '18 at 0:24





          Can I know the exact command you are trying??

          – Vidyasagar Machupalli
          Nov 27 '18 at 0:24




















          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%2f53418418%2fexporting-logs-out-of-loganalaysis-ibm-cloud%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

          Guess what letter conforming each word

          Port of Spain

          Run scheduled task as local user group (not BUILTIN)