Questions Tagged With logshttp://linuxexchange.org/tags/logs/?type=rssquestions tagged <span class="tag">logs</span>enMon, 11 May 2015 05:59:31 -0400How mmpstrucdata and mmrfc5424addhmac works?http://linuxexchange.org/questions/3543/how-mmpstrucdata-and-mmrfc5424addhmac-works<p>I am trying to log messages with structured data . But it is showing null value for structured data. I am working with rsyslog 8.9.0.Can someone exlain me how these two modules mmpstrucdata and mmrfc5424addhmac will be effected?</p>LilyChadhaMon, 11 May 2015 05:59:31 -0400http://linuxexchange.org/questions/3543/how-mmpstrucdata-and-mmrfc5424addhmac-workslinuxexchangesyslogdebianlogslinuxhow to redirect the output of serial console (e.g. /dev/ttyS0) to a buffer or filehttp://linuxexchange.org/questions/3129/how-to-redirect-the-output-of-serial-console-eg-devttys0-to-a-buffer-or-file<p>Is it possible to pipe serial console output to a file or a buffer or some virtual or pseudo device (in /dev)? The Kernel command line has in startup at this point "console=null,115200". (Normally it has "console=ttyS0,115200" - my requirement is: if "console=null,115200", should the output go to some other place than ttyS0, e.g. a virtual or pseudo device or to a file/buffer)</p> <p>Maybe somebody know if there is good solution available?</p> <p>Thanks a lot in advance!</p>cremeplawenMon, 01 Jul 2013 10:27:31 -0400http://linuxexchange.org/questions/3129/how-to-redirect-the-output-of-serial-console-eg-devttys0-to-a-buffer-or-fileserialconsolettykernel-spacelogsiptables and sudo not logginghttp://linuxexchange.org/questions/2355/iptables-and-sudo-not-logging<p>I have Ubuntu 10.04.2LTS 32-bit Desktop Edition and it's the same on 3 different systems.</p> <p>iptables and sudo aren't logging and I need them to be.</p> <p>1) None of them have the auth.log in /etc which is used for logging sudo commands/login authorizations</p> <p>2) None of them have the syslog.conf file in /etc (but one does exist under /usr/share/logwatch/default.conf/logfiles/syslog.conf)</p> <p>3) I've looked in the "Log Viewer" in Gnome and in /etc</p> <p>I need to enable and monitor these loggings somehow.</p>RonThu, 14 Apr 2011 13:53:25 -0400http://linuxexchange.org/questions/2355/iptables-and-sudo-not-loggingiptablessysloglucidlogsubuntuLogging to filesystem or databasehttp://linuxexchange.org/questions/1451/logging-to-filesystem-or-database<p>So I'm looking for best practices on logging. IO, resource consumption, etc.</p> <p>Which is the better way to go from a performance perspective. Log to database, or filesystem.</p> <p>Some of the applications can log straight to the database, apache being one. Some would have to be funneled from the syslog aggregation system to the database. </p> <p>So on the applications that can go directly to the database should I, or should I just keep the standard, and let the aggregate do the work of putting into the database.</p> <p>Thoughts?</p> <p>-Rob</p>rfelsburgTue, 07 Dec 2010 17:37:03 -0500http://linuxexchange.org/questions/1451/logging-to-filesystem-or-databaselogssyslogioperformanceapacheProgramming logic questionhttp://linuxexchange.org/questions/832/programming-logic-question<p>I'm looking for a high level view of how to get a program to tail a file continuously, not at intervals, and actually act on the data it has...whiles till continuously monitoring the file.</p> <p>I'm running into a mental block trying to figure out how to keep the program monitoring, which a while(1=1) loop would certainly accomplish, but how do you act on the data you've gathered, while still monitoring the file...</p> <p>If you exit the loop to act on the data, how do you still keep tabs on where you are in the file, it seems to me these need to be done in parallel...what am I missing?</p> <p>If you need a more concise or clear answer please let me know, I'm having a hard time getting my mind wrapped around this. Thoughts?</p> <p>Thanks,</p> <p>-Rob</p>rfelsburgThu, 10 Jun 2010 20:55:39 -0400http://linuxexchange.org/questions/832/programming-logic-questionprogramminglogsscriptinglinuxHow to gather troubleshooting information during startup?http://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup<p>I am trying to get linux installed on an older laptop. Some of the time it starts up and runs just fine. But most attempts of at starting the laptop gets through BIOS and starts linux. Then during the time when /dev is being populated the laptop abruptly powers off.</p> <p>I do not have any information about what is going wrong on the failed startups. Is there a way to get some logging information out of one of these failed startup attempts? Is there some other troubleshooting technique I should be using?</p>rschulerWed, 09 Jun 2010 15:34:45 -0400http://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startupbootkernellogsHow to include parts of live log files into websitehttp://linuxexchange.org/questions/390/how-to-include-parts-of-live-log-files-into-website<p>How would I go about having apache pull some lines from log files to be displayed on a website.</p> <p>I want to pull the last 5 vistiors IPs (possiblly while censoring them slightly) and the last 3 IPs to be banned for trying to connect via SSH (which is currently blocked using fail2ban.)</p> <p>I really have no clue where to start with this other than I already have apache up and running and my website is hosted in what can be thought of as a "normal" configuration.</p> <p>The log files are in /var/log/ and I can control the access to them.</p>djsmiley2kSat, 08 May 2010 12:29:35 -0400http://linuxexchange.org/questions/390/how-to-include-parts-of-live-log-files-into-websiteapache-httpdlogs