BookmarkSubscribeRSS Feed
Acf2
Obsidian | Level 7

Is there an official definition of the record headers in  Metadata and ObjectSpawner logs ?

 

What is the incrementing number in [] here ? :

 

2024-09-16T02:29:38,591 INFO [00000003]  ... Rest of line follows

It behaves like an Event id but sometimes the number near the top of the log will appear much further down and later .

 

I am trying to trace significant variations in Workspace server startup times between EG and SAS/Studio. 

2 REPLIES 2
PaulHomes
Rhodochrosite | Level 12

If you look in the SAS servers logconfig.xml file e.g. /opt/sas94m8/config/Lev1/SASMeta/MetadataServer/logconfig.xml you will see a ConversionPattern line like follows:

 

<param name="ConversionPattern" value="%d %-5p [%t] (%c) %X{Client.ID}:%u - %m"/>

 

The item you are asking about is %t which is documented in the SAS 9.4 Logging: Configuration and Programming Reference, t Conversion Character section at https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/logug/n1p9fotibfkw4en11pdrjiu32a84.htm as "the identifier of the thread that generated the log event." I don't consider the value itself to be meaningful but that log lines with the same thread id come from the same process/thread.

Acf2
Obsidian | Level 7
Thanks Paul. That is exactly what I was looking for. I have modified logconfig.xml previously but it was trial and error.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 767 views
  • 5 likes
  • 2 in conversation