146 Rockwell Automation Publication 1426-UM001J-EN-P - August 2019
Chapter 6 Logging
Data Log Single Record Retrieval
A controller or application can sequentially retrieve records from the Data Log 
files by following the process described in this section, following these general 
tasks. The tables that are referenced are in Appendix A
. 
1. Read the number of log files from the Statistics.Logging
 table.
2. Wri te the Configuration.Log_Read
 table and read the filename from the 
LoggingResults.DataLog_FileName
 table until the desired log file is 
selected.
3. Write the selected file name into the Configuration.DataLogFile
 table.
4. Perform sequential reads of the LoggingResults.Data_Log
 table and store 
the results in a suitable location.
The Statistics.Logging
 file contains the following Data Log information:
• Element 7 and 8, the number of Data Log records
• Element 9, the number of Data Log files
The Configuration.Log_Read
 table contains the following elements:
• Element 0. Write a value of 7 to request the next Data Log file name
• Element 1: Write a 0 to return the most recent file name first or a 1 to 
return the oldest file name first
The LoggingResults.DataLog_FileName
 table returns a string containing the 
requested file name. The file name contains the starting date and time of the log 
file, as described in File Names
 on page 144
26 DataLog_Parameter_21 Values of user-selected or default parameters
27 DataLog_Parameter_22 
28 DataLog_Parameter_23 
29 DataLog_Parameter_24 
30 DataLog_Parameter_25 
31 DataLog_Parameter_26 
32 DataLog_Parameter_27 
33 DataLog_Parameter_28 
34 DataLog_Parameter_29 
35 DataLog_Parameter_30 
36 DataLog_Parameter_31 
37 DataLog_Parameter_32
Table 17 - Data Log Logged Parameters
Element Tag Name Description