Skip to main content


This Script is part of the Common Scripts Pack.#

Load the contents of a file into context.

Script Data#

Script Typepython2
TagsUtility, ingestion
Cortex XSOAR Version5.0.0

Used In#

This script is used in the following playbooks and scripts.

  • Integration Troubleshooting
  • Rapid IOC Hunting Playbook


Argument NameDescription
entryIDWar Room entryID of the file to read.
maxFileSizeMaximal file size to load, in bytes. Default is 1MB.
input_encodingThe character encoding of the file.
output_data_typeThe data type to which the output data is converted.
output_metadataSet true in order to output additional metadata on the file, to context


FileDataData read from the War Room file.Unknown
ReadFile.DataData read from the War Room file.Unknown
ReadFile.EntryIDFile entry ID.string
ReadFile.FileSizeFile size.number
ReadFile.EOFWhether the file has reached end-of-file.boolean