osquery-1/specs/darwin/mdls.table
Drake Aronhalt da4bfd4762
mdls table implementation (#4825)
Created mdls table which mimics the functionality of the mdls command in macOS. Table allows osquery to retrieve key/value pairs from spotlight metadata.
2020-02-11 09:15:00 -08:00

14 lines
499 B
Plaintext

table_name("mdls")
description("Query file metadata in the Spotlight database.")
schema([
Column("path", TEXT, "Path of the file", required=True),
Column("key", TEXT, "Name of the metadata key"),
Column("value", TEXT, "Value stored in the metadata key"),
Column("valuetype", TEXT, "CoreFoundation type of data stored in value", hidden=True),
])
implementation("mdls@genMdlsResults")
fuzz_paths([])
examples([
"select * from mdls where path = '/Users/testuser/Desktop/testfile';"
])