Re: [go-cd] trying to configure logback and access logs

2018-01-10 Thread 'Barry Greenwood' via go-cd
Deeper digging has allowed me to confirm nothing was appearing in the file 
due to it being not a new server, the issue with failing to log was related 
to an old version of the jetty.xml config file.

I can now log to files successfully, next step will be to send the data to 
a logstash server as well as log locally

Many thanks for help with this.

 Barry


On Thursday, 4 January 2018 17:02:18 UTC, Barry Greenwood wrote:
>
> Hi
>
>  I have tied these its a little better in the file is now being created, 
>
> but i'm still not getting any access logs in the file
>
> i've tried both
> cat /var/lib/go-server/config/logback-include.xml
> 
> 
>class="ch.qos.logback.core.rolling.RollingFileAppender">
> /var/log/go-server/lbinclude.log
>  class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>   lbinclude.%d{-MM-dd}.log.gz
> 
> 7
> 1GB
> true
> 
>   %date{ISO8601} - %-4relative [%thread] %-5level %logger{35} 
> - %msg%n
> 
>   
>
>   
>
>   
> 
>   
>
> 
>
> and 
>
>
>   
> 
>   
>
> the first generates some data in the file the second leaves the file empty.
>
> logback access comes from the documentation on 
> https://logback.qos.ch/access.html which is linked from 
> https://github.com/logstash/logstash-logback-encoder
>
> Many thanks
>
> Barry
>
> On Tuesday, 2 January 2018 19:24:20 UTC, Aravind SV wrote:
>>
>> Just FYI. Yes, it looks like doing this will work:
>>
>> mkdir config
>> chown go:go config
>> ln -s /etc/go/logback-include.xml /var/lib/go-server/config/
>>
>> On Tue, Jan 2, 2018 at 11:17 AM, Aravind SV  
>> wrote:
>>
>>> Hello Barry,
>>>
>>> On Tue, Jan 2, 2018 at 9:49 AM, 'Barry Greenwood' via go-cd <
>>> go...@googlegroups.com> wrote:
>>>
 Thanks for the help however i am still having issues.

 /etc/default/logback-include.xml as described but with a with a file 
 appender in it does not create the file, that implies this isn't being read

>>>
>>> You're right. It's a bug. It'll be fixed in the next release (probably 
>>> through this PR ). Meanwhile, 
>>> temporarily, can you see if moving the file logback-include.xml into 
>>> /var/lib/go-server/config/ works?
>>>
>>> Here's what I tried, to ensure that this works:
>>>
>>> $ ls -l /var/lib/go-server/config/
>>> total 4
>>> -rw-r--r-- 1 go go 759 Jan  2 18:58 logback-include.xml
>>> $ cat /var/lib/go-server/config/logback-include.xml
>>> 
>>> 
>>>   >> class="ch.qos.logback.core.rolling.RollingFileAppender">
>>> /var/log/go-server/test.log
>>> 
>>>   %date{ISO8601} %-5level [%thread] %logger{0}:%line - 
>>> %msg%n
>>> 
>>>
>>> >> class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
>>>   
>>> /var/log/go-server/test.log.%d{-MM-dd}.%i.gz
>>>   10 MB
>>>   10
>>>   512 MB
>>> 
>>>   
>>>
>>>   
>>> 
>>>   
>>> 
>>>
>>> Once 18.1 is released, this will stop working and you can move it back 
>>> to its correct place, /etc/go/logback-include.xml. Or, you can see if a 
>>> symbolic link from /var/lib/go-server/config/logback-include.xml to 
>>> /etc/go/logback-include.xml works.
>>>
>>> Cheers,
>>> Aravind
>>>
>>
>>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2018-01-04 Thread Aravind SV
Maybe check permissions of that directory and file? I tried it too and it
worked. The second snippet (with the appender inside the logger).

On Thu, Jan 4, 2018 at 9:02 AM, 'Barry Greenwood' via go-cd <
go-cd@googlegroups.com> wrote:

> Hi
>
>  I have tied these its a little better in the file is now being created,
>
> but i'm still not getting any access logs in the file
>
> i've tried both
> cat /var/lib/go-server/config/logback-include.xml
> 
> 
>   
> /var/log/go-server/lbinclude.log
> 
>   lbinclude.%d{-MM-dd}.log.gz
> 
> 7
> 1GB
> true
> 
>   %date{ISO8601} - %-4relative [%thread] %-5level %logger{35}
> - %msg%n
> 
>   
>
>   
>
>   
> 
>   
>
> 
>
> and
>
>
>   
> 
>   
>
> the first generates some data in the file the second leaves the file empty.
>
> logback access comes from the documentation on https://logback.qos.ch/
> access.html which is linked from https://github.com/
> logstash/logstash-logback-encoder
>
> Many thanks
>
> Barry
>
> On Tuesday, 2 January 2018 19:24:20 UTC, Aravind SV wrote:
>>
>> Just FYI. Yes, it looks like doing this will work:
>>
>> mkdir config
>> chown go:go config
>> ln -s /etc/go/logback-include.xml /var/lib/go-server/config/
>>
>> On Tue, Jan 2, 2018 at 11:17 AM, Aravind SV 
>> wrote:
>>
>>> Hello Barry,
>>>
>>> On Tue, Jan 2, 2018 at 9:49 AM, 'Barry Greenwood' via go-cd <
>>> go...@googlegroups.com> wrote:
>>>
 Thanks for the help however i am still having issues.

 /etc/default/logback-include.xml as described but with a with a file
 appender in it does not create the file, that implies this isn't being read

>>>
>>> You're right. It's a bug. It'll be fixed in the next release (probably
>>> through this PR ). Meanwhile,
>>> temporarily, can you see if moving the file logback-include.xml into
>>> /var/lib/go-server/config/ works?
>>>
>>> Here's what I tried, to ensure that this works:
>>>
>>> $ ls -l /var/lib/go-server/config/
>>> total 4
>>> -rw-r--r-- 1 go go 759 Jan  2 18:58 logback-include.xml
>>> $ cat /var/lib/go-server/config/logback-include.xml
>>> 
>>> 
>>>   
>>> /var/log/go-server/test.log
>>> 
>>>   %date{ISO8601} %-5level [%thread] %logger{0}:%line -
>>> %msg%n
>>> 
>>>
>>> 
>>>   /var/log/go-server/test.log.%d{-MM-dd}.
>>> %i.gz
>>>   10 MB
>>>   10
>>>   512 MB
>>> 
>>>   
>>>
>>>   
>>> 
>>>   
>>> 
>>>
>>> Once 18.1 is released, this will stop working and you can move it back
>>> to its correct place, /etc/go/logback-include.xml. Or, you can see if a
>>> symbolic link from /var/lib/go-server/config/logback-include.xml to
>>> /etc/go/logback-include.xml works.
>>>
>>> Cheers,
>>> Aravind
>>>
>>
>> --
> 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 go-cd+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2018-01-04 Thread Ketan Padegaonkar
I ran these sequence of commands
 and it
worked for me.



On Thu, Jan 4, 2018 at 10:32 PM 'Barry Greenwood' via go-cd <
go-cd@googlegroups.com> wrote:

> Hi
>
>  I have tied these its a little better in the file is now being created,
>
> but i'm still not getting any access logs in the file
>
> i've tried both
> cat /var/lib/go-server/config/logback-include.xml
> 
> 
>class="ch.qos.logback.core.rolling.RollingFileAppender">
> /var/log/go-server/lbinclude.log
>  class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>   lbinclude.%d{-MM-dd}.log.gz
> 
> 7
> 1GB
> true
> 
>   %date{ISO8601} - %-4relative [%thread] %-5level %logger{35}
> - %msg%n
> 
>   
>
>   
>
>   
> 
>   
>
> 
>
> and
>
>
>   
> 
>   
>
> the first generates some data in the file the second leaves the file empty.
>
> logback access comes from the documentation on
> https://logback.qos.ch/access.html which is linked from
> https://github.com/logstash/logstash-logback-encoder
>
> Many thanks
>
> Barry
>
> On Tuesday, 2 January 2018 19:24:20 UTC, Aravind SV wrote:
>
>> Just FYI. Yes, it looks like doing this will work:
>>
>> mkdir config
>> chown go:go config
>> ln -s /etc/go/logback-include.xml /var/lib/go-server/config/
>>
> On Tue, Jan 2, 2018 at 11:17 AM, Aravind SV 
>> wrote:
>>
> Hello Barry,
>>>
>>
>>> On Tue, Jan 2, 2018 at 9:49 AM, 'Barry Greenwood' via go-cd <
>>> go...@googlegroups.com> wrote:
>>>
 Thanks for the help however i am still having issues.

 /etc/default/logback-include.xml as described but with a with a file
 appender in it does not create the file, that implies this isn't being read

>>>
>>> You're right. It's a bug. It'll be fixed in the next release (probably
>>> through this PR ). Meanwhile,
>>> temporarily, can you see if moving the file logback-include.xml into
>>> /var/lib/go-server/config/ works?
>>>
>>> Here's what I tried, to ensure that this works:
>>>
>>> $ ls -l /var/lib/go-server/config/
>>> total 4
>>> -rw-r--r-- 1 go go 759 Jan  2 18:58 logback-include.xml
>>> $ cat /var/lib/go-server/config/logback-include.xml
>>> 
>>> 
>>>   >> class="ch.qos.logback.core.rolling.RollingFileAppender">
>>> /var/log/go-server/test.log
>>> 
>>>   %date{ISO8601} %-5level [%thread] %logger{0}:%line -
>>> %msg%n
>>> 
>>>
>>> >> class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
>>>
>>> /var/log/go-server/test.log.%d{-MM-dd}.%i.gz
>>>   10 MB
>>>   10
>>>   512 MB
>>> 
>>>   
>>>
>>>   
>>> 
>>>   
>>> 
>>>
>>> Once 18.1 is released, this will stop working and you can move it back
>>> to its correct place, /etc/go/logback-include.xml. Or, you can see if a
>>> symbolic link from /var/lib/go-server/config/logback-include.xml to
>>> /etc/go/logback-include.xml works.
>>>
>>> Cheers,
>>> Aravind
>>>
>> --
> 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 go-cd+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2018-01-04 Thread 'Barry Greenwood' via go-cd
Hi

 I have tied these its a little better in the file is now being created, 

but i'm still not getting any access logs in the file

i've tried both
cat /var/lib/go-server/config/logback-include.xml


  
/var/log/go-server/lbinclude.log

  lbinclude.%d{-MM-dd}.log.gz

7
1GB
true

  %date{ISO8601} - %-4relative [%thread] %-5level %logger{35} 
- %msg%n

  

  

  

  



and 


  

  

the first generates some data in the file the second leaves the file empty.

logback access comes from the documentation 
on https://logback.qos.ch/access.html which is linked 
from https://github.com/logstash/logstash-logback-encoder

Many thanks

Barry

On Tuesday, 2 January 2018 19:24:20 UTC, Aravind SV wrote:
>
> Just FYI. Yes, it looks like doing this will work:
>
> mkdir config
> chown go:go config
> ln -s /etc/go/logback-include.xml /var/lib/go-server/config/
>
> On Tue, Jan 2, 2018 at 11:17 AM, Aravind SV  > wrote:
>
>> Hello Barry,
>>
>> On Tue, Jan 2, 2018 at 9:49 AM, 'Barry Greenwood' via go-cd <
>> go...@googlegroups.com > wrote:
>>
>>> Thanks for the help however i am still having issues.
>>>
>>> /etc/default/logback-include.xml as described but with a with a file 
>>> appender in it does not create the file, that implies this isn't being read
>>>
>>
>> You're right. It's a bug. It'll be fixed in the next release (probably 
>> through this PR ). Meanwhile, 
>> temporarily, can you see if moving the file logback-include.xml into 
>> /var/lib/go-server/config/ works?
>>
>> Here's what I tried, to ensure that this works:
>>
>> $ ls -l /var/lib/go-server/config/
>> total 4
>> -rw-r--r-- 1 go go 759 Jan  2 18:58 logback-include.xml
>> $ cat /var/lib/go-server/config/logback-include.xml
>> 
>> 
>>   > class="ch.qos.logback.core.rolling.RollingFileAppender">
>> /var/log/go-server/test.log
>> 
>>   %date{ISO8601} %-5level [%thread] %logger{0}:%line - 
>> %msg%n
>> 
>>
>> > class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
>>   
>> /var/log/go-server/test.log.%d{-MM-dd}.%i.gz
>>   10 MB
>>   10
>>   512 MB
>> 
>>   
>>
>>   
>> 
>>   
>> 
>>
>> Once 18.1 is released, this will stop working and you can move it back to 
>> its correct place, /etc/go/logback-include.xml. Or, you can see if a 
>> symbolic link from /var/lib/go-server/config/logback-include.xml to 
>> /etc/go/logback-include.xml works.
>>
>> Cheers,
>> Aravind
>>
>
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2018-01-02 Thread Aravind SV
Just FYI. Yes, it looks like doing this will work:

mkdir config
chown go:go config
ln -s /etc/go/logback-include.xml /var/lib/go-server/config/

On Tue, Jan 2, 2018 at 11:17 AM, Aravind SV  wrote:

> Hello Barry,
>
> On Tue, Jan 2, 2018 at 9:49 AM, 'Barry Greenwood' via go-cd <
> go-cd@googlegroups.com> wrote:
>
>> Thanks for the help however i am still having issues.
>>
>> /etc/default/logback-include.xml as described but with a with a file
>> appender in it does not create the file, that implies this isn't being read
>>
>
> You're right. It's a bug. It'll be fixed in the next release (probably
> through this PR ). Meanwhile,
> temporarily, can you see if moving the file logback-include.xml into
> /var/lib/go-server/config/ works?
>
> Here's what I tried, to ensure that this works:
>
> $ ls -l /var/lib/go-server/config/
> total 4
> -rw-r--r-- 1 go go 759 Jan  2 18:58 logback-include.xml
> $ cat /var/lib/go-server/config/logback-include.xml
> 
> 
>   
> /var/log/go-server/test.log
> 
>   %date{ISO8601} %-5level [%thread] %logger{0}:%line -
> %msg%n
> 
>
> 
>   /var/log/go-server/test.log.%d{-MM-dd}.
> %i.gz
>   10 MB
>   10
>   512 MB
> 
>   
>
>   
> 
>   
> 
>
> Once 18.1 is released, this will stop working and you can move it back to
> its correct place, /etc/go/logback-include.xml. Or, you can see if a
> symbolic link from /var/lib/go-server/config/logback-include.xml to
> /etc/go/logback-include.xml works.
>
> Cheers,
> Aravind
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2018-01-02 Thread Aravind SV
Hello Barry,

On Tue, Jan 2, 2018 at 9:49 AM, 'Barry Greenwood' via go-cd <
go-cd@googlegroups.com> wrote:

> Thanks for the help however i am still having issues.
>
> /etc/default/logback-include.xml as described but with a with a file
> appender in it does not create the file, that implies this isn't being read
>

You're right. It's a bug. It'll be fixed in the next release (probably
through this PR ). Meanwhile,
temporarily, can you see if moving the file logback-include.xml into
/var/lib/go-server/config/ works?

Here's what I tried, to ensure that this works:

$ ls -l /var/lib/go-server/config/
total 4
-rw-r--r-- 1 go go 759 Jan  2 18:58 logback-include.xml
$ cat /var/lib/go-server/config/logback-include.xml


  
/var/log/go-server/test.log

  %date{ISO8601} %-5level [%thread] %logger{0}:%line -
%msg%n



  /var/log/go-server/test.log.%d{-MM-dd}.
%i.gz
  10 MB
  10
  512 MB

  

  

  


Once 18.1 is released, this will stop working and you can move it back to
its correct place, /etc/go/logback-include.xml. Or, you can see if a
symbolic link from /var/lib/go-server/config/logback-include.xml to
/etc/go/logback-include.xml works.

Cheers,
Aravind

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2018-01-02 Thread 'Barry Greenwood' via go-cd
Hi

Thanks for the help however i am still having issues.

/etc/default/logback-include.xml as described but with a with a file 
appender in it does not create the file, that implies this isn't being read

/etc/go/logback.xml 

does create the file but nothing is put into the file.
"


  
/var/log/go-server/lbinclude.log

  lbinclude.%d{-MM-dd}.log.zip

7
1GB
true
  

  

  

"
On Wednesday, 20 December 2017 11:52:20 UTC, Ketan Padegaonkar wrote:
>
> The logs do not mention any logback-access.xml anywhere. To get access 
> logs —
>
> * create a file called `/etc/default/logback-include.xml`, with the 
> following contents
>
> 
> 
>   
> 
>
>
> On Wed, Dec 20, 2017 at 4:51 PM 'Barry Greenwood' via go-cd <
> go...@googlegroups.com > wrote:
>
>> Hi Varsha 
>>
>> I've tried in the  logback.xml
>>
>> > class="ch.qos.logback.core.rolling.RollingFileAppender">
>> /var/log/go-server/lbaccess.log
>> > class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>>   lbaccess.%d{-MM-dd}.log.zip
>> 
>> 7
>> 1GB
>> true
>> 
>>   combined
>> 
>>   
>>
>>   
>> 
>>   
>>
>> and that generates the file but no logs appear.
>>
>> The docs imply i need to use a logback-access.xml but i cant get that to 
>> import.
>>
>> Thanks
>>
>> Barry
>>
>>
>> On Wednesday, 20 December 2017 05:31:40 UTC, Varsha Varadarajan wrote:
>>>
>>> @Barry - Are you looking for request logs? This can be setup using 
>>> org.eclipse.jetty.server.RequestLog. Checkout the docs that Ketan pointed 
>>> to - https://docs.gocd.org/current/advanced_usage/logging.html
>>>
>>>
> -- 
>> 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 go-cd+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2017-12-20 Thread Ketan Padegaonkar
The logs do not mention any logback-access.xml anywhere. To get access logs
—

* create a file called `/etc/default/logback-include.xml`, with the
following contents



  



On Wed, Dec 20, 2017 at 4:51 PM 'Barry Greenwood' via go-cd <
go-cd@googlegroups.com> wrote:

> Hi Varsha
>
> I've tried in the  logback.xml
>
>  class="ch.qos.logback.core.rolling.RollingFileAppender">
> /var/log/go-server/lbaccess.log
>  class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>   lbaccess.%d{-MM-dd}.log.zip
> 
> 7
> 1GB
> true
> 
>   combined
> 
>   
>
>   
> 
>   
>
> and that generates the file but no logs appear.
>
> The docs imply i need to use a logback-access.xml but i cant get that to
> import.
>
> Thanks
>
> Barry
>
>
> On Wednesday, 20 December 2017 05:31:40 UTC, Varsha Varadarajan wrote:
>>
>> @Barry - Are you looking for request logs? This can be setup using
>> org.eclipse.jetty.server.RequestLog. Checkout the docs that Ketan pointed
>> to - https://docs.gocd.org/current/advanced_usage/logging.html
>>
>>
 --
> 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 go-cd+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2017-12-20 Thread 'Barry Greenwood' via go-cd
Hi Varsha 

I've tried in the  logback.xml


/var/log/go-server/lbaccess.log

  lbaccess.%d{-MM-dd}.log.zip

7
1GB
true

  combined

  

  

  

and that generates the file but no logs appear.

The docs imply i need to use a logback-access.xml but i cant get that to 
import.

Thanks

Barry

On Wednesday, 20 December 2017 05:31:40 UTC, Varsha Varadarajan wrote:
>
> @Barry - Are you looking for request logs? This can be setup using 
> org.eclipse.jetty.server.RequestLog. Checkout the docs that Ketan pointed 
> to - https://docs.gocd.org/current/advanced_usage/logging.html
>
>
>>>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2017-12-19 Thread Varsha Varadarajan
@Barry - Are you looking for request logs? This can be setup using 
org.eclipse.jetty.server.RequestLog. Checkout the docs that Ketan pointed 
to - https://docs.gocd.org/current/advanced_usage/logging.html

On Tuesday, 19 December 2017 21:33:15 UTC+5:30, Ketan Padegaonkar wrote:
>
> Assuming you're on version 17.11+ — checkout these docs 
> .
>
> For versions older than 17.10, you'd likely have a log4j.properties file 
> and you'd be expected to uncomment this line 
> 
> .
>
>
>
> On Tue, Dec 19, 2017 at 9:26 PM 'Barry Greenwood' via go-cd <
> go-cd@googlegroups.com> wrote:
>
>>
>>- 
>>
>>Hi I am trying to configure logback and access logs but this doesnt 
>>appear to work. following the documentation i've come up with the below 
>>jetty.xml. However the logback-access.xml doesn't ever seem to be read. 
>>- 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>>class="ch.qos.logback.access.jetty.RequestLogImpl"> 
>>/etc/go/logback-access.xml 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> the below is the logback.xml (which appears to be needed but is missing 
>> from the documentation.
>>
>>- 
>>
>> 
>> 
>>
>>
>>>class="ch.qos.logback.classic.net.SocketAppender"> 
>>SD-LOGSTASH.sysdev.zen.co.uk 
>>3319 
>>1 
>>true 
>> 
>>%h %l %u [%t] "%r" %s %b "%i{Referer}" 
>>"%i{User-Agent}" 
>> 
>>
>>
>> 
>>/var/log/go-server/lbfile.log 
>>>class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 
>>lbfile.%d{-MM-dd}.log.zip 
>> 
>>7 
>>3GB 
>>true 
>> 
>>true 
>> 
>> 
>>%-4relative [%thread] %-5level %logger{35} - %date{ISO8601} 
>>- %msg%n 
>> 
>>
>>
>>>class="ch.qos.logback.core.rolling.RollingFileAppender"> 
>>/var/log/go-server/lbaccess.log 
>>>class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 
>>lbaccess.%d{-MM-dd}.log.zip 
>> 
>>7 
>>1GB 
>>true 
>> 
>>combined 
>> 
>>
>>
>> 
>>
>>- 
>>
>>finally the below is the logback-access.xml which doenst seem to be 
>>imported (the base log file isnt created)
>>
>> 
>> 
>>>class="ch.qos.logback.core.status.OnConsoleStatusListener" />
>>
>>>class="ch.qos.logback.core.rolling.RollingFileAppender"> 
>>/var/log/go-server/lb-access.log 
>>>class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 
>>lbaccess.%d{-MM-dd}.log.zip 
>>
>>
>> 
>>combined 
>> 
>>
>>
>> 
>>
>>- 
>>
>>Many Thanks for any help, Barry
>>
>> -- 
>> 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 go-cd+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2017-12-19 Thread Ketan Padegaonkar
>
> On Tue, Dec 19, 2017 at 10:27 PM 'Barry Greenwood' via go-cd <
> go-cd@googlegroups.com> wrote:
>
>> I am on 17.12, I have got logback working for application logs however
>> the access logs state i need to import an logback-access.xml
>>
>
> I don't believe there is any GoCD document that says so.
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2017-12-19 Thread 'Barry Greenwood' via go-cd
I am on 17.12, I have got logback working for application logs however the 
access logs state i need to import an logback-access.xml, however it doesnt 
specify how to force this import, I have followed the docs as far as they 
go and am still unable to get this working 
(https://github.com/logstash/logstash-logback-encoder#accessevent-fields) 

Thanks for helping

On Tuesday, 19 December 2017 16:03:15 UTC, Ketan Padegaonkar wrote:
>
> Assuming you're on version 17.11+ — checkout these docs 
> .
>
> For versions older than 17.10, you'd likely have a log4j.properties file 
> and you'd be expected to uncomment this line 
> 
> .
>
>
>>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] trying to configure logback and access logs

2017-12-19 Thread Ketan Padegaonkar
Assuming you're on version 17.11+ — checkout these docs
.

For versions older than 17.10, you'd likely have a log4j.properties file
and you'd be expected to uncomment this line

.



On Tue, Dec 19, 2017 at 9:26 PM 'Barry Greenwood' via go-cd <
go-cd@googlegroups.com> wrote:

>
>-
>
>Hi I am trying to configure logback and access logs but this doesnt
>appear to work. following the documentation i've come up with the below
>jetty.xml. However the logback-access.xml doesn't ever seem to be read.
>-
>
>
>
>
>
>
>
>class="ch.qos.logback.access.jetty.RequestLogImpl">
>/etc/go/logback-access.xml
>
>
>
>
>
>
>
> the below is the logback.xml (which appears to be needed but is missing
> from the documentation.
>
>-
>
>
>
>
>
>class="ch.qos.logback.classic.net.SocketAppender">
>SD-LOGSTASH.sysdev.zen.co.uk
>3319
>1
>true
>
>%h %l %u [%t] "%r" %s %b "%i{Referer}"
>"%i{User-Agent}"
>
>
>
>
>/var/log/go-server/lbfile.log
>class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>lbfile.%d{-MM-dd}.log.zip
>
>7
>3GB
>true
>
>true
>
>
>%-4relative [%thread] %-5level %logger{35} - %date{ISO8601} -
>%msg%n
>
>
>
>class="ch.qos.logback.core.rolling.RollingFileAppender">
>/var/log/go-server/lbaccess.log
>class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>lbaccess.%d{-MM-dd}.log.zip
>
>7
>1GB
>true
>
>combined
>
>
>
>
>
>-
>
>finally the below is the logback-access.xml which doenst seem to be
>imported (the base log file isnt created)
>
>
>
>class="ch.qos.logback.core.status.OnConsoleStatusListener" />
>
>class="ch.qos.logback.core.rolling.RollingFileAppender">
>/var/log/go-server/lb-access.log
>class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>lbaccess.%d{-MM-dd}.log.zip
>
>
>
>combined
>
>
>
>
>
>-
>
>Many Thanks for any help, Barry
>
> --
> 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 go-cd+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.