Skip to main content Link Search Menu Expand Document (external link)

Table Functions - export

Table of contents
  • export tableName

Save the current default table to a named table.

Example:

function example() {
    search {from="-8h"} sContent("@tags","fpl-example-data")
    let {id, isx5, isprime, odd, even, divisors} = f("@fields")
    aggregate v=values(id) by divisors
    let num_of_ints = listcount(v)
}

stream demo_table=example()
export export_example_table

Here, only the last two table: current (default) table and “fireeyeHxDevices”, which are the same because of the command export. The other result tables before these two tables refer to the similar example in join