enrich data in syslog?

Previous topic - Next topic

prem

Hi,

Is there a way to have more info in syslog? [not querying tables]

e.g use case for DocGet:  I want to have Flds( {id=fieldId, name=fieldName, value=fieldValue }

If that is possible, I may change other log lines like Load etc.


ApplGroup DocGet: Name(ZZ-A1111) Agid(12345) ApplName(ZZ-A1111) Aid(1234) NodeName(-CACHE-) Nid(1) Server(-LOCAL-) Time(0.012) Flds(12345,'BLABLA',12345,45645)



Justin Derrick

Hi Joe... 

As you've seen, you can get field values into the System Log by selecting the 'Log' checkbox in the AG definition.  I don't think there's a way to do what you're asking.  It should be possible to figure out which field is which by checking the fields in the AG definition if they have the log enabled, and which number they are.  I'm not sure if that helps you get closer to your goal or not.

Of course, the System Log is an AG just like any other in CMOD.  You can either create a new App Group that has the fields you want (and insert rows with arsdoc), or use arsdoc to insert rows directly into the System Log.

Alternately, you can use the logging exit to write a shell script that does what you want, although the User Exit only has access to data you'll already find in the System Log.

Let us know if that helps.

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR