<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Parsing MySQL slow log in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19526#M325</link>
    <description>&lt;P&gt;Does anyone know how to parse the MySQL slow queries log?&lt;BR /&gt;
I've tried a number of configurations in the .conf files but it's a pretty goofy format and I've had little luck getting the linemerge to consistently end with the query.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Nov 2011 04:08:15 GMT</pubDate>
    <dc:creator>paulwilliamhill</dc:creator>
    <dc:date>2011-11-19T04:08:15Z</dc:date>
    <item>
      <title>Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19526#M325</link>
      <description>&lt;P&gt;Does anyone know how to parse the MySQL slow queries log?&lt;BR /&gt;
I've tried a number of configurations in the .conf files but it's a pretty goofy format and I've had little luck getting the linemerge to consistently end with the query.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2011 04:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19526#M325</guid>
      <dc:creator>paulwilliamhill</dc:creator>
      <dc:date>2011-11-19T04:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19527#M326</link>
      <description>&lt;P&gt;Paste a few sample lines and i'll give it a shot.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2011 04:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19527#M326</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2011-11-19T04:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19528#M327</link>
      <description>&lt;P&gt;I can't fit it in a comment&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2011 05:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19528#M327</guid>
      <dc:creator>paulwilliamhill</dc:creator>
      <dc:date>2011-11-19T05:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19529#M328</link>
      <description>&lt;PRE&gt;# Time: 111118 18:55:48
# User@Host: x @ localhost []
# Query_time: 0.000250  Lock_time: 0.000079 Rows_sent: 1  Rows_examined: 6
SET timestamp=1321671348;
SELECT count(*) FROM mysql.user WHERE user='root' and password='';
# User@Host: x @ localhost []
# Query_time: 0.031790  Lock_time: 0.000080 Rows_sent: 30  Rows_examined: 88
SET timestamp=1321671348;
select concat('select count(*) into @discard from `',
                    TABLE_SCHEMA, '`.`', TABLE_NAME, '`') 
      from information_schema.TABLES where ENGINE='MyISAM';&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Nov 2011 05:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19529#M328</guid>
      <dc:creator>paulwilliamhill</dc:creator>
      <dc:date>2011-11-19T05:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19530#M329</link>
      <description>&lt;PRE&gt;
# Time: 111118 19:51:35
# User@Host: ach.test[ach.test] @ test1.mercury.local [192.168.0.61]
# Query_time: 0.000361  Lock_time: 0.000043 Rows_sent: 1  Rows_examined: 635
use test1;
SET timestamp=1321674695;
SELECT COUNT(*) AS count
    FROM ...;
# User@Host: ach.test[ach.test] @ test1.mercury.local [192.168.0.61]
# Query_time: 0.000931  Lock_time: 0.000098 Rows_sent: 10  Rows_examined: 675
SET timestamp=1321674695;
SELECT STRAIGHT_JOIN
      ...
    FROM ...
    JOIN ... ON ...
    JOIN ... f ON ...
    JOIN ... u ON ...
    ORDER BY ... DESC
    LIMIT 0, 10;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Nov 2011 05:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19530#M329</guid>
      <dc:creator>paulwilliamhill</dc:creator>
      <dc:date>2011-11-19T05:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19531#M330</link>
      <description>&lt;P&gt;by deafult splunk seems to use the SET timestamp= line to break but that is not really the event break. The end of the query is.&lt;BR /&gt;
Also it throws in a # Time: line every now an then. but it's not a bounding element of the log line. It's just extra logged info. I think it may turn up for new connections and because we have a pool it's only every so often.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2011 05:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19531#M330</guid>
      <dc:creator>paulwilliamhill</dc:creator>
      <dc:date>2011-11-19T05:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19532#M331</link>
      <description>&lt;P&gt;OK, so what are the boundaries of an event? In other words, where would you like Splunk to break, and where in the event should it look for a timestamp?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2011 05:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19532#M331</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2011-11-19T05:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing MySQL slow log</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19533#M332</link>
      <description>&lt;P&gt;We this guy seems to have gotten pretty close &lt;A href="http://splunk-base.splunk.com/answers/13109/mysql-slow-query-log-parsing"&gt;http://splunk-base.splunk.com/answers/13109/mysql-slow-query-log-parsing&lt;/A&gt; but my logs don't consistently output the Time: log line.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2011 05:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Parsing-MySQL-slow-log/m-p/19533#M332</guid>
      <dc:creator>paulwilliamhill</dc:creator>
      <dc:date>2011-11-19T05:48:47Z</dc:date>
    </item>
  </channel>
</rss>

