File is a datatype for a file upload to LogScale for use with the `match` query function. You can see them under the Files page in the UI.

Table: File

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For return datatypes, this indicates that you must specify which fields you want returned in the results.
Table last updated: Jul 24, 2025
allowedActions[AssetAction]yes Short-TermThe allowed asset actions. See AssetAction . This is a preview and may be changed.
contentHashstringyes Long-TermA content hash.
createdAtdatetimeyes Long-TermThe date on which the file was created.
createdBystringyes Long-TermThe author of the file.
fileSizeByteslong  Long-TermThe file size in bytes.
labels[string]yes PreviewThe labels associated with this file.
modifiedAtdatetimeyes Long-TermThe date and time the file was last modified.
modifiedBystringyes Long-TermThe user who last modified the file.
nameAndPathFileNameAndPathyes Long-TermThe name and path of the file. See FileNameAndPath.
packagePackageInstallation  Long-TermThe package, if any, associated with the file. See PackageInstallation.
packageIdVersionedPackageSpecifier  Long-TermThe package identifier. VersionedPackageSpecifier is a scalar.
resourcestringyes Short-TermThe resource identifier for the file.