Searching for logged data
Last updated
Last updated
Through the menu-bar Monitoring -> Logs elaborations it is possible to search for logged data, gathered from the services under control, both on the local installation and on remote installations.
This feature provides a filter panel on the UI through which searching for a variety of different data, coming from elaborations or specific messages.
Available filters include:
application - if not specified, elaborations are not only the ones gathered locally, but also the ones coming from remote Platform installations, where there can be other applications defined and running; in any case, elaborations are filtered by the company id of the logged user (site id is also filtered according to the site ids bounded to the current logged user)
start date / end date - elaborations can be filtered by interval or starting from the start datetime or until the specified end datetime
service - the combo-box includes all services defined locally and remote services (fetched through the “Synchronize and search” button)
code - this is the service code, which can be specified instead of the service (description)
elaboration state - elaborations are filtered according to the state specified here; i this way it is possible to search for errors only or elaborations not finished yet
transaction id - a value representing a cross-server transaction; another way to look for all elaborations having the same transaction is simply filtering the transaction directly in the corresponding column (right click with the mouse, to activate the quick filter)
message code - this is related to errors; Platform supports a set of pre-defined message codes (e.g. out of memory, database lock, etc.); moreover, a Platform developer can define additional errors (message codes), which can be filtered here; if specified, only elaborations having logged messages with this code will be shown
file name - in case of elaborations involving files to read/write and logged as messages, it is possible to filter elaborations referring such a files as logged messages
In case the “service” combo-box has been specified, additional input fields are prompted: for each tag defined for the selected service, a filter control is shown here.
For example, if a “selling” service has been defined with a “barcode” tag, when selecting this service in the filter panel, a “barcode” filter control will be added as well.
The result list reports the following columns:
finder - if you have defined the BigQuery dataset you can search the old elaborations with the "History" selection
application - the application id, needed in case of elaborations coming not only from the local server but also from remote servers
code - service code, related to the elaboration
start/end date - datetime when the elaboration started and finished; end date is filled only for elaborations terminated without or with errors
duration - the elaboration duration, expressed in seconds
transaction id - helpful to aggregate elaborations which share the same transaction
elaboration state - an elaboration can be started, ended correctly, ended/interrupted with errors
The "Show linked elaborations" button allows to filter the grid content according to the elaborations related to the same original elaboration which went wrong: when a service under monitoring is set with a number of retries/wait time, it is possible to automate the re-start of the same elaboration (in case of FATAL errors). In such a scenario, this button shows only failed elaborations re-started multiple times. If the n-retry for that elaboration completes successfully, the last elaboration is marked as "completed" and all the previous ones (included the original one) are marked as successfully rielaborated (with previous errors).
When double clicking on a row in the result list, the corresponding detail window is prompted.
The elaboration detail window contains 3 subfolders:
Elaboration - it reports the elaboration details, such as the application, service code, elaboration state and its transaction id; apart from that, there is also a sub panel containing the input and output for the elaboration, better described below
Logs - every message can be related to errors or other informative messages; each message include: message type (fatal error, error, informative message, detailed message, finest message), message date code, message text, optional file name
Files - list of files managed by this elaboration; for each file it is reported the elaboration outcome: still in progress or completed
The "Elaboration restart" button can be helpful when the current elaboration has failed. In such a scenario, the error can be due to an erroneous input content. Let's take the case of a web service containing a data not correct/valid/too long, etc.
Thanks to the elaboration detail window and the "Log" folder the exact error is identified. If it depends on erroneous input data, it can be correct by pressing on "Elaboration restart": this will open an input dialog to edit the input content (only the request body can be changed). Finally, press the "Play" button to re-execute the process and create a new elaboration
Note: in the Log sub-folder, when moving the mouse cursor over the “message code”, a tooltip is shown to show:
the problem description for that message code
the solution suggested by Platform to solve the problem
Note: the input and output for the elaboration sub panel contains different content, spread along 4 sub-folders and expressed using JSON format.
The content changes according to the service under monitoring:
in case of a web service: request headers, request parameters, body request, response
in case of a data export from table, the result sub-folder contains the number of extracted rows