There is no way to export raw records from Discover at this time (here is the issue tracking this), but you can export tables from Visualize. So if you can get your data into the table, then you can export it.
You must be exporting the object definition from Settings. The export feature is a bit hard to locate - but it's done right from the visualization itself (see screenshots)
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.