Skip to content

recordLocation - Connect the document in Coralogix with the cloud object

Sometimes it's useful to see where a particular record is stored in your cloud object storage. The recordLocation command will return the location of a particular record. For example, is you use AWS S3 as your cloud object storage, then this function will return a URL to an S3 object.

NOTE: This is designed to work with data held in your cloud storage. As such, running this against indexed documents (i.e in Frequent Search mode) will return null.

Syntax

recordLocation(): string

Example - Decorating documents with S3 URL

If we want to add the URL for our backend S3 objects to our documents, we can do so with the following query:

create s3_location from recordLocation()