Syslog-NG logging multiple timestamps

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












In the below configuration,



@version: 3.17

source s_network
udp(
flags(syslog_protocol)
keep_hostname(yes)
keep_timestamp(yes)
use_dns(no)
use_fqdn(no)
);
;

destination d_all_logs
file("/app/syslog-ng/custom/output/all_devices.log");

;


log
source(s_network);
destination(d_all_logs);
;



incoming message is:



[root@machine ~]# tcpdump -v dst port 514
14:41:30.097509 IP (tos 0x0, ttl 243, id 4483, offset 0, flags [none], proto UDP (17), length 127)
machine2.def.com.49239 > machine.abc.com.syslog: SYSLOG, length: 99
Facility local7 (23), Severity error (3)
Msg: 4483: 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2


where nslookup machine2.def.com gives 10.69.20.11



that is stored as



[root@machine ~]# cat /app/syslog-ng/custom/output/all_devices.log | grep "030842: Oct 30 18:41:30.081"
Oct 30 14:41:30 10.69.20.11 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



syslog-ng running on machine appends its own time stamp in log file(Oct 30 14:41:30), in addition to sender's timestamp.



Message should have only sender timestamp that looks like Oct 30 18:41:30.081 UTC 10.69.20.11 030842: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



What are the changes required in the configuration?









share

























    up vote
    0
    down vote

    favorite












    In the below configuration,



    @version: 3.17

    source s_network
    udp(
    flags(syslog_protocol)
    keep_hostname(yes)
    keep_timestamp(yes)
    use_dns(no)
    use_fqdn(no)
    );
    ;

    destination d_all_logs
    file("/app/syslog-ng/custom/output/all_devices.log");

    ;


    log
    source(s_network);
    destination(d_all_logs);
    ;



    incoming message is:



    [root@machine ~]# tcpdump -v dst port 514
    14:41:30.097509 IP (tos 0x0, ttl 243, id 4483, offset 0, flags [none], proto UDP (17), length 127)
    machine2.def.com.49239 > machine.abc.com.syslog: SYSLOG, length: 99
    Facility local7 (23), Severity error (3)
    Msg: 4483: 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2


    where nslookup machine2.def.com gives 10.69.20.11



    that is stored as



    [root@machine ~]# cat /app/syslog-ng/custom/output/all_devices.log | grep "030842: Oct 30 18:41:30.081"
    Oct 30 14:41:30 10.69.20.11 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



    syslog-ng running on machine appends its own time stamp in log file(Oct 30 14:41:30), in addition to sender's timestamp.



    Message should have only sender timestamp that looks like Oct 30 18:41:30.081 UTC 10.69.20.11 030842: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



    What are the changes required in the configuration?









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      In the below configuration,



      @version: 3.17

      source s_network
      udp(
      flags(syslog_protocol)
      keep_hostname(yes)
      keep_timestamp(yes)
      use_dns(no)
      use_fqdn(no)
      );
      ;

      destination d_all_logs
      file("/app/syslog-ng/custom/output/all_devices.log");

      ;


      log
      source(s_network);
      destination(d_all_logs);
      ;



      incoming message is:



      [root@machine ~]# tcpdump -v dst port 514
      14:41:30.097509 IP (tos 0x0, ttl 243, id 4483, offset 0, flags [none], proto UDP (17), length 127)
      machine2.def.com.49239 > machine.abc.com.syslog: SYSLOG, length: 99
      Facility local7 (23), Severity error (3)
      Msg: 4483: 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2


      where nslookup machine2.def.com gives 10.69.20.11



      that is stored as



      [root@machine ~]# cat /app/syslog-ng/custom/output/all_devices.log | grep "030842: Oct 30 18:41:30.081"
      Oct 30 14:41:30 10.69.20.11 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



      syslog-ng running on machine appends its own time stamp in log file(Oct 30 14:41:30), in addition to sender's timestamp.



      Message should have only sender timestamp that looks like Oct 30 18:41:30.081 UTC 10.69.20.11 030842: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



      What are the changes required in the configuration?









      share













      In the below configuration,



      @version: 3.17

      source s_network
      udp(
      flags(syslog_protocol)
      keep_hostname(yes)
      keep_timestamp(yes)
      use_dns(no)
      use_fqdn(no)
      );
      ;

      destination d_all_logs
      file("/app/syslog-ng/custom/output/all_devices.log");

      ;


      log
      source(s_network);
      destination(d_all_logs);
      ;



      incoming message is:



      [root@machine ~]# tcpdump -v dst port 514
      14:41:30.097509 IP (tos 0x0, ttl 243, id 4483, offset 0, flags [none], proto UDP (17), length 127)
      machine2.def.com.49239 > machine.abc.com.syslog: SYSLOG, length: 99
      Facility local7 (23), Severity error (3)
      Msg: 4483: 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2


      where nslookup machine2.def.com gives 10.69.20.11



      that is stored as



      [root@machine ~]# cat /app/syslog-ng/custom/output/all_devices.log | grep "030842: Oct 30 18:41:30.081"
      Oct 30 14:41:30 10.69.20.11 030842: Oct 30 18:41:30.081 UTC: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



      syslog-ng running on machine appends its own time stamp in log file(Oct 30 14:41:30), in addition to sender's timestamp.



      Message should have only sender timestamp that looks like Oct 30 18:41:30.081 UTC 10.69.20.11 030842: %SYS-3-DUP_TIMER: Same tty2 in linewatch_timers, type 2



      What are the changes required in the configuration?







      linux rhel syslog syslog-ng





      share












      share










      share



      share










      asked 1 min ago









      overexchange

      356213




      356213

























          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "",
          contentPolicyHtml: "",
          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%2funix.stackexchange.com%2fquestions%2f478811%2fsyslog-ng-logging-multiple-timestamps%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478811%2fsyslog-ng-logging-multiple-timestamps%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay