Author Topic: enrich data in syslog?  (Read 2633 times)

prem

  • Guest
enrich data in syslog?
« on: June 05, 2013, 08:22:32 AM »
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.

Code: [Select]
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)
« Last Edit: June 05, 2013, 09:07:29 AM by joe01 »

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: enrich data in syslog?
« Reply #1 on: June 05, 2013, 05:23:48 PM »
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.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

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