-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Multiple custom access logs and Header field for ATS #502
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Refer to this link for build results (access rights to CI server needed): |
The configfiles.pm in UI is deprecated. These changes need to be made against the traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm file. If you can do that I will test and merge them. |
@dg4prez changes made on ApacheTrafficServer.pm as well |
@weifensh I installed this today in my lab. Can you give a little more explanation on how this should work? I removed LogFormat and created a LogFormat1 and LogFormat2. This resulted with my file having the following :
|
@weifensh Here's an example of the parameters I imported. https://gist.github.com/smalenfant/6eb39724b9ddea55def4e99c5803733b |
weifensh Apparently I needed the old ConfigFiles.pm as well... @dg4prez Are both ConfigFiles.pm and ApacheTrafficServer.pm needed even with new ORT and API end point? |
ConfigFiles is deprecated. The api is kept up to date.
… On Oct 26, 2017, at 2:39 PM, Steve Malenfant ***@***.***> wrote:
@weifensh Apparently I needed the old ConfigFiles.pm as well...
@dg4prez Are both ConfigFiles.pm and ApacheTrafficServer.pm even with new ORT and API end point?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@smalenfant the original "LogFormat" and "LogObject" could still be kept and still works. And new "LogFormatN" and "LogObjectN" could be added, each "LogObjectN.Format" may be assigned with the value of "LogFormatN.Name" so that they are linked. |
@weifensh Could you rebase so I can merge this change? Thanks. It's been tested and working great here. |
@smalenfant Rebased, could you check if it is mergeable now? |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
@weifensh Still got problem merging (through github). We might need some assistance on how to fix this. |
@weifensh I followed instructions here for https://www.digitalocean.com/community/tutorials/how-to-rebase-and-update-a-pull-request basically, those following commands
Hopefully that can do it. It will bring your commit as a single one on the top to the tree. |
991d259
to
72378c2
Compare
Refer to this link for build results (access rights to CI server needed): |
Thanks @smalenfant Haven't managed to rebase it successfully, so just opened a new PR: |
Refer to this link for build results (access rights to CI server needed): |
As discussed in the dev maillist:
Currently TO supports only one custom access log file by configuring the "LogFormat" and "LogObject" parameters for "logs_xml.config". We have a requirement to support multiple custom access log files. As ATS does support this, we are planning to extend "LogFormat"&"LogObject" on TO, and add extra 9 groups (9 should be enough) of parameters like: "LogFormat1"&"LogObject1", "LogFormat2"&"LogObject2" ... "LogFormat9"&"LogObject9". Only when "LogFormatN"&"LogObjectN" are configured, they will appear in "logs_xml.config"; otherwise the file does not change, so the current behavior does not change either.