<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the help.<br>
<br>
I know about the substring function but I'm at a loss as to where to
put this string...<br>
<br>
I cannot find any suitable interface within which to plug it in...&nbsp; the
mod_log_sql program writes directly to the mysql database so where do I
insert this code?<br>
<br>
Is there a filter function in phpmyadmin that I cannot find?<br>
<br>
Sorry for my newbie question but I'm confounded here.<br>
<br>
Another issue I'm having is that although if I tail -f
/var/log/apache2/other_vhosts_access.log I can see the requests coming
in for requests for the same file, but mod_log_mysql is only logging
the first occurrence of the log, not subsequent hits and I need all
hits to be logged even if the request is for the same file.<br>
<br>
As I stated in my previous post, the scenario is very simple.&nbsp; All file
requests are always going to look like this:<br>
<br>
<pre wrap="">098sdafmasf90q89234rjqwe.jpg

with the string before the .jpg being the only thing that changes.

I've setup the sites-available to only log this:

LogSQLRequestAccept .jpg

which indeed is working, but only the first request shows up, not subsequent hits although tailing other_vhosts_access.log indeed shows the subsequent hits coming in.

Thanks for your assistance.


</pre>
<br>
<br>
<br>
<br>
Edward Rudd wrote:
<blockquote
 cite="mid:D72B6692-F0F4-4A3B-98E0-EDB60C61AE03@outoforder.cc"
 type="cite">
  <pre wrap="">The simplest is to use SQL to remove the first character from the  
field when selecting

SELECT SUBSTRING(request_uri,2) as request_uri FROM myloggingtable


On Feb 16, 2009, at 4:25 PM, jeffs wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I have mysql logging working perfectly.  I only need to either:

a) use some mysql command to remove the forward slash from uri that is
being input into the uri_request field, or

b) stop the forward slash from being recorded in the mysql database in
the first place.

Either way, I need to not have the forward slash get recorded into the
request_uri field.  In this particular logging scenario I am using,
uri's will always look like:

/098sdafmasf90q89234rjqwe.jpg

as recorded by log_mysql.

I need it to look like:

098sdafmasf90q89234rjqwe.jpg

is there a way to do this?

Thank you very much
_______________________________________________
Download the latest version at <a class="moz-txt-link-freetext" href="http://www.outoforder.cc/projects/apache/mod_log_sql/">http://www.outoforder.cc/projects/apache/mod_log_sql/</a>

To unsubscribe send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:mod_log_sql-unsubscribe@lists.outoforder.cc">mod_log_sql-unsubscribe@lists.outoforder.cc</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
Download the latest version at <a class="moz-txt-link-freetext" href="http://www.outoforder.cc/projects/apache/mod_log_sql/">http://www.outoforder.cc/projects/apache/mod_log_sql/</a>

To unsubscribe send an e-mail to 
<a class="moz-txt-link-abbreviated" href="mailto:mod_log_sql-unsubscribe@lists.outoforder.cc">mod_log_sql-unsubscribe@lists.outoforder.cc</a>


  </pre>
</blockquote>
<br>
</body>
</html>