JavaScript function test outcome fields

reference brazil Updated Sep 10, 2026 2 min read hla-mapping-script-outcome-ref.md
Raw file servicenow.com

Description of the JavaScript function test outcome fields.

The following fields are read-only:

Field

Description

Duration (ms)

The processing time of all samples, in milliseconds.

Source types

The number of source types predicted or created for this data input.

Sources

The number of sources predicted or created for this data input.

Errors

The number of JavaScript errors that occurred in all the samples.

Unmapped

The number of log lines that could not be mapped. These log lines are mapped to default tags.

Samples

The number of log samples on which the test is run.The default value is 1,000.

Note: You can increase the number of log samples up to a maximum of 5,000 samples in the system property data_input_mapping.max_examples. For more information, see Configure global Health Log Analytics system properties.

In the related lists, view the predicted or created source types and sources.

List/Tab

Description

Outcome Key Value Mapping

The results of running the JavaScript function on the log samples.

Source Types (from samples)

The predicted or created source types.Note: You can open source types that have already been created by selecting the appropriate link.

Sources (from samples)

The predicted or created sources.Note: You can open sources that have already been created by selecting the appropriate link.

Test Outcome

The log samples used for testing your JavaScript function, ordered by sources and source types.The Test Outcome list displays the number of log samples for each source-source type combination, and is updated when the log samples are refreshed and you start testing your script.

The list links to samples in the Mapping Samples table, which shows the outcome of the JavaScript function for each sample.

This feature is supported in the Health Log Analytics application, Version 26.0.17 - February 2023 and later, available from the ServiceNow Store.

Source Type Structures

The source type structures for this data input.Reviewing the source type structures can help you gain a better understanding of the data flow.

The Last event time column on this tab shows the last date and time the AI engine processed a log for the source type structure. The system refreshes this information every 5 minutes. Knowing when the last log was processed for this source type structure makes it easier to verify that log data is streaming.

**Parent Topic:**[Health Log Analytics reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-operations-management/health-log-analytics/hla-reference.md)
Search documentation
Search document titles and file paths on the brazil branch