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.


[go-cd] Re: Monitor how much time spent waiting for an agent

2017-12-19 Thread 'Barry Greenwood' via go-cd
Through the agents api you can see when a job was picked up by an agent and 
how long it spent processing each stage.

I am guessing through the pipelines you can see when a job was scheduled. 






On Monday, 30 October 2017 23:30:18 UTC, Sanjay Sharma wrote:
>
> We have lots of go agents and sometimes they are all busy. Is there an 
> easy way to surface how long pipelines are waiting for a go-agent to be 
> made available.
>
> That way we can know when we need to provision more go agents of a certain 
> resource type
>

-- 
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.


[go-cd] Re: Dockerized go-cd agent fails to run pipeline due to missing JAVA_HOME

2017-12-19 Thread 'Barry Greenwood' via go-cd

>
> Inside the install of the go agent look at config/wrapper-agent.conf
>
 

look for or add if it doesnt event, 
set.GO_AGENT_JAVA_HOME=%GO_AGENT_JAVA_HOME%

as a pointer it does to where the jre folder resides not into the JRE its 
self

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.


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.


[go-cd] configure logback and access logs on GOCD

2017-12-19 Thread 'Barry Greenwood' via go-cd

   
   - 
   
   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. 
   - 
   







   /etc/go/logback-access.xml 





   
   
the below is the logback.xml (which appears to be needed but is missing 
from the documentation.

   - 
   


   
   

{logstash server } 
   3319 
   1 
   true 

   %h %l %u [%t] "%r" %s %b "%i{Referer}" 
   "%i{User-Agent}" 

   
   

   /var/log/go-server/lbfile.log 

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

   7 
   3GB 
   true 

   true 


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

   
   

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

   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)
   


   
   

   /var/log/go-server/lb-access.log 

   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.


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

2017-12-19 Thread 'Barry Greenwood' via go-cd

   
   - 
   
   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. 
   - 
   







   /etc/go/logback-access.xml 





   
   
the below is the logback.xml (which appears to be needed but is missing 
from the documentation.

   - 
   


   
   

   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 

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

   7 
   3GB 
   true 

   true 


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

   
   

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

   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)
   


   
   

   /var/log/go-server/lb-access.log 

   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.