Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #239874
| From | DFS <nospam@dfs.com> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation |
| Date | 2014-04-23 18:05 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <lj9dec$sqe$1@dont-email.me> (permalink) |
| References | <lj6d75$seb$1@dont-email.me> <lj6dnj$g1g$5@solani.org> <lj6itb$8gu$1@dont-email.me> <20140423073130.468@usenet.drumscum.be> <lj82uj$dn8$1@dont-email.me> |
On 04/23/2014 05:59 AM, Chris Ahlstrom wrote: > TomB wrote this copyrighted missive and expects royalties: > >> On 2014-04-22, the following emerged from the brain of DFS: >> >> 8< >> >>> * all messages logged on a date cat logfile | grep ^YYYY-MM-DD >>> >>> * first and last 25 messages on a date cat logfile | grep >>> ^YYYY-MM-DD | head -n 25 cat logfile | grep ^YYYY-MM-DD | tail -n >>> 25 >>> >>> * all messages related to gparted cat logfile | grep gparted >> >> Yes, /that's/ how it's done ;-) > > Log viewer app? How quaint. Sounds like something Windows would > use. It's a Gnome app for Linux. Been around forever. The one in Ubuntu is copyrighted by the FSF... you know them, don't you? The giggly twerps who sit around and bitch about Microsoft while begging for an allowance. Sound familiar? > And then, instead of using stock system tools (e.g. as noted above), > you end up with something like this: > > http://msdn.microsoft.com/en-us/library/windows/desktop/aa385785(v=vs.85).aspx > > > The following are the programming elements that you use to create an > instrumentation manifest, create resources from the manifest that > your provider uses, get instrumentation metadata at run time, and > query events from channels and log files: > > - EventManifest Schema - Event Schema - Query Schema - Windows > Event Log Constants - Windows Event Log Data Types - Windows Event > Log Enumerations - Windows Event Log Functions - Windows Event Log > Structures - Windows Event Log Tools > > And here's just the function page: > > http://msdn.microsoft.com/en-us/library/windows/desktop/aa385784(v=vs.85).aspx > > > > Windows... the Rube Goldberg OS. Poor Creepy++ "Boo hoo!!! Windows Event Logging is too complex!! I likes me the simpleton Linux way: an unstructured text log file I can process wif cat, awk, grep, and pipes!" Problem with your girlie-man 'analysis' is Windows Event logging is complex (to you) because it's well-designed and professional and sophisticated, as opposed to Linux event logging which is unstructured and hobbyist and amateurish. In Linux, you can't even count on an event date/time being in a consistent format: kern.log uses 'Apr 23 08:32:36', dpkg.log uses '2014-04-17 01:21:23', and pm-suspend.log uses 'Wed Apr 23 08:32:37 EDT 2014'. Some logs put the date first, others put it later in the event line. Some logs don't even have date info in them. It's typical Linux slopware chaos. Windows Event logging is FAR superior. From the GUI Event Viewer, to custom log views, to the XML infrastructure of the log data, to the Event logging API and SDK, to the granularity of the Events and their properties, to the command line mgmt utility wevtutil, to the documentation, it absolutely puts Linux to shame. Here Creepy++, I'll get you started on some CLI stuff: list of logs (there are nearly 500 available) # wevtutil el list of event publishers (apps, services, drivers that write to the event logs) # wevtutil ep info about an event publisher # wevtutil gp Workstation get status info about a log # wevtutil gli System export the log to a file # wevtutil epl System D:\my_system.log query logs for events (eg errors or warnings logged the last 2 hours) # wevtutil qe System /q:"*[System[(Level=2 or Level=3) and TimeCreated[timediff(@SystemTime)<=7200000]]]" /f:text /rd:True command reference http://technet.microsoft.com/en-us/library/cc732848.aspx to open the Event Viewer # eventvwr Plus, you can use the Event Viewer to construct a sophisticated custom query, then cut and paste it and edit it for use in wevtutil or scripting. Note: the above is what's known as a beatdown: me on you, and Windows on Linux.
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation DFS <nospam@dfs.com> - 2014-04-22 14:42 -0400
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation Melzzzzz <mel@zzzzz.invalid> - 2014-04-22 20:51 +0200
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation DFS <nospam@dfs.com> - 2014-04-22 16:19 -0400
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation TomB <tommy.bongaerts@gmail.com> - 2014-04-23 05:31 +0000
Long Term Shithead: Bug #10 - whining about documentation Chris Ahlstrom <OFeem1987@teleworm.us> - 2014-04-23 05:59 -0400
Re: Long Term Shithead: Bug #10 - whining about documentation chrisv <chrisv@nospam.invalid> - 2014-04-23 06:50 -0500
Re: Long Term Shithead: Bug #10 - whining about documentation flatfish+++ <phlatphish@yahoo.com> - 2014-04-23 08:42 -0400
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation DFS <nospam@dfs.com> - 2014-04-23 10:21 -0400
Re: Long Term Shithead: Bug #10 - whining about documentation GreyCloud <mist@cumulus.com> - 2014-04-23 08:54 -0600
Re: Long Term Shithead: Bug #10 - whining about documentation Hadron<hadronquark@gmail.com> - 2014-04-24 13:07 +0200
Re: Long Term Shithead: Bug #10 - whining about documentation flatfish+++ <phlatphish@yahoo.com> - 2014-04-23 08:38 -0400
Re: Long Term Shithead: Bug #10 - whining about documentation GreyCloud <mist@cumulus.com> - 2014-04-23 08:53 -0600
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation DFS <nospam@dfs.com> - 2014-04-23 18:05 -0400
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation flatfish+++ <phlatphish@yahoo.com> - 2014-04-23 18:12 -0400
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation DFS <nospam@dfs.com> - 2014-04-23 21:37 -0400
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation Hadron<hadronquark@gmail.com> - 2014-04-24 13:17 +0200
Re: Long Term Shithead: Bug #10 - whining about documentation Hadron<hadronquark@gmail.com> - 2014-04-24 13:06 +0200
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation DFS <nospam@dfs.com> - 2014-04-23 10:19 -0400
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation TomB <tommy.bongaerts@gmail.com> - 2014-04-23 23:26 +0000
Re: Ubuntu 14.04 Long Term Shitware: Bug #10 - log viewer app missing menus shown in documentation Snit <usenet@gallopinginsanity.com> - 2014-04-22 12:35 -0700
csiph-web