Scripted fields compute data on the fly from the data in your Elasticsearch indices. The data is shown on the Discover tab as part of the document data, and you can use scripted fields in your visualizations.
So if the field is not in the index, you cannot access it.
Pretty sure there are special variables you can call, such as the interval variable... We can do it in TSVB, maybe someone from Elastic needs to confirm.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.