Discussion:
[squid-users] URL rewriter note
Yann Girardin
2018-09-28 13:27:56 UTC
Permalink
Hi

I am using the url_rewrite_program directive on my squid 4 configuration.

I want to use the note feature to use it in my logformat program. But when I pass %note to it my note looks empty squid send me «-«.

My url rewrite program return to squid line that looks something like :

OK mynote=XX

Where XX is always an integer.

Is there something wrong ?

Thank you
Alex Rousskov
2018-09-28 15:57:20 UTC
Permalink
Post by Yann Girardin
Hi
I am using the url_rewrite_program directive on my squid 4 configuration.
I want to use the note feature to use it in my logformat program. But when I pass %note to it my note looks empty squid send me «-«.
OK mynote=XX
Where XX is always an integer.
Is there something wrong ?
It is difficult to say what is going on without more information. Please
start by posting your Squid version and the relevant parts of your Squid
configuration.


Thank you,

Alex.
Yann Girardin
2018-10-01 07:15:55 UTC
Permalink
Hi,

Sorry I am using squid 4.2 and here is how I configure my url_rewriter program and here is how it is configured

url_rewrite_bypass on
url_rewrite_program my_program my_args
url_rewrite_children 100 startup=10 idle=2 concurrency=5

I recall my program return something that looks like :

OK my_note=30

And the issue here is that I want to use this note in the logformat program by passing it using %note or %{my_note}note but this call my log_format program with empty note (even when I use %note), I got "-"

-----Message d'origine-----
De : squid-users [mailto:squid-users-***@lists.squid-cache.org] De la part de Alex Rousskov
Envoyé : vendredi 28 septembre 2018 17:57
À : squid-***@lists.squid-cache.org
Objet : Re: [squid-users] URL rewriter note
Post by Yann Girardin
Hi
I am using the url_rewrite_program directive on my squid 4 configuration.
I want to use the note feature to use it in my logformat program. But when I pass %note to it my note looks empty squid send me «-«.
OK mynote=XX
Where XX is always an integer.
Is there something wrong ?
It is difficult to say what is going on without more information. Please
start by posting your Squid version and the relevant parts of your Squid
configuration.


Thank you,

Alex.


_______________________________________________
squid-users mailing list
squid-***@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
Alex Rousskov
2018-10-01 20:04:13 UTC
Permalink
Post by Yann Girardin
Hi,
Sorry I am using squid 4.2 and here is how I configure my url_rewriter program and here is how it is configured
url_rewrite_bypass on
url_rewrite_program my_program my_args
url_rewrite_children 100 startup=10 idle=2 concurrency=5
OK my_note=30
IIRC, that is not a correct URL rewriter response when helper
concurrency is enabled. It is missing the Channel-ID field shown at
https://wiki.squid-cache.org/Features/AddonHelpers#HTTP_Redirection

If your helper does not send the channel ID field, please fix the
helper. Otherwise, please post your logformat line (you can replace any
private formatting info with "..." or similar).

Also, does your helper send my_note for all responses? Are you sure that
access log lines with missing annotations correspond to the cases where
the URL rewriting helper was used and sent my_note?


Thank you,

Alex.
Post by Yann Girardin
And the issue here is that I want to use this note in the logformat program by passing it using %note or %{my_note}note but this call my log_format program with empty note (even when I use %note), I got "-"
-----Message d'origine-----
Envoyé : vendredi 28 septembre 2018 17:57
Objet : Re: [squid-users] URL rewriter note
Post by Yann Girardin
Hi
I am using the url_rewrite_program directive on my squid 4 configuration.
I want to use the note feature to use it in my logformat program. But when I pass %note to it my note looks empty squid send me «-«.
OK mynote=XX
Where XX is always an integer.
Is there something wrong ?
It is difficult to say what is going on without more information. Please
start by posting your Squid version and the relevant parts of your Squid
configuration.
Thank you,
Alex.
_______________________________________________
squid-users mailing list
http://lists.squid-cache.org/listinfo/squid-users
Continue reading on narkive:
Search results for '[squid-users] URL rewriter note' (Questions and Answers)
10
replies
What are the best tools for SEO ?
started 2009-03-30 01:46:28 UTC
programming & design
Loading...