How computationally heavy is converting datetime to epoch?How many minutes have passed since the Unix...

How to respond to someone who condemns behavior similar to what they exhibit?

PhD: When to quit and move on?

Show that there are infinitely more problems than we will ever be able to compute

how can i make this execution plan more efficient?

What are the differences of checking a self-signed certificate vs ignore it?

What/Where usage English vs Japanese

How to iterate equal values with the standard library?

What is the difference between a historical drama and a period drama?

How did Einstein know the speed of light was constant?

Park the computer

Is it possible that Curiosity measured its own methane or failed doing the spectrometry?

Do we have a much compact and generalized version of erase–remove idiom?

What is the name of the technique when an element is repeated at different scales?

List comprehensions in Mathematica?

Is it possible to spoof an IP address to an exact number?

What is this arch-and-tower near a road?

Why would "dead languages" be the only languages that spells could be written in?

Will a free neutron radiate if it is de-accelerated?

Who pays for increased security measures on flights to the US?

How would an Amulet of Proof Against Detection and Location interact with the Comprehend Languages spell?

Do I need to be legally qualified to install a Hive smart thermostat?

Does the Milky Way orbit around anything?

Minimizing medical costs with HSA

How did שְׁלֹמֹה (shlomo) become Solomon?



How computationally heavy is converting datetime to epoch?


How many minutes have passed since the Unix Epoch?agonizing over the Unix epochepoch time for GMTHow to set date with Epoch formatSet date with milliseconds from epochConverting date/time to current JDNGetting epoch time from gmt time stamplinux unix posix EPOCH time formatIncrement datetime by hour or minConverting date's default output to Unix epoch






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am writing a shell script to help me work with the syslog's generated in my network.



In brief the goal is to grep the logs I am interested in and append them separately to another file (lets say feed.log). I want to convert time from syslogs which have the format of %b %m %Y %T (Eg. Jul 02 2019 15:14:49) to epoch.



Now this script would be running every 180 seconds, and the syslog file can be anywhere between 500MB to 2GB.



I am worried if this would be too computationally heave, also is there any better way to achieve this?










share|improve this question







New contributor



Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    0















    I am writing a shell script to help me work with the syslog's generated in my network.



    In brief the goal is to grep the logs I am interested in and append them separately to another file (lets say feed.log). I want to convert time from syslogs which have the format of %b %m %Y %T (Eg. Jul 02 2019 15:14:49) to epoch.



    Now this script would be running every 180 seconds, and the syslog file can be anywhere between 500MB to 2GB.



    I am worried if this would be too computationally heave, also is there any better way to achieve this?










    share|improve this question







    New contributor



    Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I am writing a shell script to help me work with the syslog's generated in my network.



      In brief the goal is to grep the logs I am interested in and append them separately to another file (lets say feed.log). I want to convert time from syslogs which have the format of %b %m %Y %T (Eg. Jul 02 2019 15:14:49) to epoch.



      Now this script would be running every 180 seconds, and the syslog file can be anywhere between 500MB to 2GB.



      I am worried if this would be too computationally heave, also is there any better way to achieve this?










      share|improve this question







      New contributor



      Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am writing a shell script to help me work with the syslog's generated in my network.



      In brief the goal is to grep the logs I am interested in and append them separately to another file (lets say feed.log). I want to convert time from syslogs which have the format of %b %m %Y %T (Eg. Jul 02 2019 15:14:49) to epoch.



      Now this script would be running every 180 seconds, and the syslog file can be anywhere between 500MB to 2GB.



      I am worried if this would be too computationally heave, also is there any better way to achieve this?







      linux date syslog






      share|improve this question







      New contributor



      Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 10 mins ago









      Medhavi NagakumarMedhavi Nagakumar

      11 bronze badge




      11 bronze badge




      New contributor



      Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Medhavi Nagakumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          });


          }
          });






          Medhavi Nagakumar is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f528130%2fhow-computationally-heavy-is-converting-datetime-to-epoch%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Medhavi Nagakumar is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Medhavi Nagakumar is a new contributor. Be nice, and check out our Code of Conduct.













          Medhavi Nagakumar is a new contributor. Be nice, and check out our Code of Conduct.












          Medhavi Nagakumar is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f528130%2fhow-computationally-heavy-is-converting-datetime-to-epoch%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...