The link has examples, but a logback-include in the config directory as
documented like the below should do it.
<?xml version="1.0" encoding="UTF-8"?>
<included>
<logger name="org.eclipse.jetty.server.RequestLog" level="INFO" />
</included>
The details of where to put it depend on how you are installing and running
GoCD but you haven't shared any of those details or exactly what you have
tried that does not work.
On Wed, Jul 31, 2024 at 12:09 PM deva raj <[email protected]> wrote:
> Thank you for sharing the above link. I am trying to capture the API hit
> in the logs but still unsuccessful.
>
> Do you have any sample files for the same?
>
> Yeah, the link was copied from the API link on the Introduction page.
> https://api.gocd.org/current/#introduction . \
>
> We are only running the application on port 8153.
>
>
>
> On Tuesday 30 July 2024 at 06:23:10 UTC+5:30 Chad Wilson wrote:
>
>> Try enabling the jetty RequestLog from
>> https://docs.gocd.org/current/advanced_usage/logging.html
>>
>> Alternatively, log from your reverse proxy rather than GoCD itself.
>> However you are referring to port 8154 which makes me worried you are using
>> a very old and unsupported GoCD version, as GoCD hasn't listened on that
>> port for years now.
>>
>> -Chad
>>
>> On Tue, 30 Jul 2024, 00:04 deva raj, <[email protected]> wrote:
>>
>>> Hi All,
>>>
>>> GoCD API hits URL logs are not getting recorded in go-server.log,
>>>
>>> Can someone help with how to capture API hits in go-server.log
>>>
>>> https://go-server-url:8154/go/api
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "go-cd" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/go-cd/f57f9ab8-88d1-4bd0-bf0a-22504afb66c1n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/go-cd/f57f9ab8-88d1-4bd0-bf0a-22504afb66c1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/7dd5ca41-80f3-4a75-820b-c5da6c148793n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/7dd5ca41-80f3-4a75-820b-c5da6c148793n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/go-cd/CAA1RwH9ZgnFR5-2X72fuVMOg2r9pXz1drovN%2B1GBkyoDiYtrgA%40mail.gmail.com.