Good morning.
I have been trying to implement a USS trigger but it has not been working out well. Currently we have an application that creates log files in USS and I am trying to cut those to a GDG when they are created, but the trigger isn't kicking off my event.
EVENT ID(DXRACF.RACFAGENT_LOG) OWNER(applicationId) SYSTEM(MASTER) -
REPLACE
COM *** ***
COM *** COPY RACFAGENT.LOG ***
COM *** ***
SEND 'UNIX TRIGGER ON NEW FILE AT %ESPATIME ' USER(USERSYS)
SEND 'PRODUCTION %SYSPLEX' USER(USERSYS)
SUBMIT 'DXX.D940.ITIM.CNTL(AGENTLOG)'
DSTRIG /apps/itimrw6/log/racfagent.log_0- USS
I was under the assumption that - was a variable so it would grab logs as they were created. The original log file is racfagent.log, and when it fills up it copies the logs to racfagent.log_001. When it fills again it copies to racfagent.log_002
I need to get these cut to a GDG, as once the logs hit 20, they roll and are overwritten.
What can I do to ensure this triggers when the files are written to?