Below is the information required to change the default log retention for Tomcat
Add .maxDays = 14
to each handler, for example:
Before:
import Ember from 'ember'; | |
export default Ember.Object.extend({ | |
previousUnauthorizedTransition: null, | |
token: null, | |
username:null | |
}); |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
actions: { | |
login: function(a,b,c,d) { | |
var me = this, data = this.getProperties('username','password'); | |
Ember.$.post('/admin/login',data).then(function(response) { | |
me.session.set('token',response.substring(0,50)); | |
console.log("token inside controller.login",me.session.get('token')); |
export default Ember.Object.extend({ | |
previousUnauthorizedTransition: null, | |
token: localStorage.token, | |
username:null, | |
tokenChanged: function() { | |
localStorage.token = this.get('token'); | |
}.observes('token') | |
}) |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
powershell -noprofile -command "& { function conn([string]$h,[int]$p) {$c=New-Object System.Net.Sockets.TcpClient; try {$c.connect($h, $p);return [byte]($c.Connected);}catch{return 0}} function hostport([string]$s){$r=($s -match \"^((?:\d{1,3}\.){3}\d{1,3}):(\d{1,6})$\");$m=$matches;return ($r,$m[1],$m[2])} function chk([string]$dest) { $hp=hostport $dest; if ($hp[0]) { write-host (\"Connection to {0}:{1} = {2}\" -f ($hp[1],$hp[2],@(\"Failed\",\"Success\")[(conn $hp[1] $hp[2])])) } else { write-host (\"Invalid: {0}\" -f $dest) } } foreach ($a in $args) {chk $a} }" 127.0.0.1:22 127.0.0.1:80 |
https://support.f5.com/csp/article/K54334475
powershell.exe -command "& { $dt=(get-date -UFormat \"%Y-%m-%d-%H%m%S\"); $s=\"$Env:APPDATA\Genesys Telecommunication\InteractionWorkspace\log\*\"; $d=(\"{0}\Desktop\wde-logs-{1}\" -f ($Env:USERPROFILE,$dt)); if ((test-path $d) -eq $false) { md $d > $null; } cp $s $d; write-host \"\"; write-host (\"WDE logs have been copied to {0}\" -f $d) }" |