<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.technologyandsocialaction.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Technology and Social Action - getting stats from drupal watchdog - Comments</title>
 <link>http://www.technologyandsocialaction.org/node/301</link>
 <description>Comments for &quot;getting stats from drupal watchdog&quot;</description>
 <language>en</language>
<item>
 <title>getting stats from drupal watchdog</title>
 <link>http://www.technologyandsocialaction.org/node/301</link>
 <description>&lt;p&gt;here are some simple examples of some SQL to get information from watchdog, using sql string matching...&lt;/p&gt;
&lt;pre&gt;
SELECT message,timestamp FROM watchdog WHERE message LIKE &#039;%daws%&#039; 
AND type=&#039;user&#039; AND message NOT LIKE &#039;notify%&#039;;
&lt;/pre&gt;&lt;p&gt;you get the idea...&lt;br /&gt;
to see how many password resets I&#039;d asked for I&#039;d do&lt;/p&gt;
&lt;pre&gt;
SELECT hostname,message,timestamp FROM watchdog 
WHERE message LIKE &#039;%Password%&#039; and type=&#039;user&#039; 
AND message LIKE &#039;%ligh%&#039;;
&lt;/pre&gt;&lt;p&gt;or &lt;/p&gt;
&lt;pre&gt;
SELECT COUNT(*) FROM watchdog 
WHERE message LIKE &#039;%Password%&#039; and type=&#039;user&#039; AND MESSAGE LIKE &#039;%dawson%&#039;;
&lt;/pre&gt;&lt;br class=&quot;clear&quot; /&gt;</description>
 <comments>http://www.technologyandsocialaction.org/node/301#comments</comments>
 <category domain="http://www.technologyandsocialaction.org/taxonomy/term/55">Online Environment Development</category>
 <category domain="http://www.technologyandsocialaction.org/taxonomy/term/51">Other discussion topics</category>
 <pubDate>Sat, 17 Nov 2007 06:33:32 +0000</pubDate>
 <dc:creator>alan dawson</dc:creator>
 <guid isPermaLink="false">301 at http://www.technologyandsocialaction.org</guid>
</item>
</channel>
</rss>
