Export table?
Posted: Wed Feb 24, 2016 2:09 pm
Am I blind or is there now way to export a table to csv or some other format?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
curl -XPOST "http://localhost:9200/_search?pretty" -d'
{
"fields": ["user", "message", "type"],
"query": {
"filtered": {
"filter": {
"range": {
"@timestamp": {
"from": "now-5m",
"to": "now"
}
}
},
"query": {
"query_string": {
"query": "syslog"
}
}
}
}
}'Code: Select all
curl -XPOST "http://localhost:9200/_search?pretty" -d'
{
"fields": ["user", "message", "type"],
"query": {
"filtered": {
"filter": {
"range": {
"@timestamp": {
"from": "now-24h",
"to": "now"
}
}
},
"query": {
"query_string": {
"query": "type:syslog"
}
}
}
}
}'Code: Select all
"fields": ["user", "@timestamp"],It seems that this is misleading - I'll bring it up to our developers. Thank you!You can read more about what you can do with the API in the API documents in the help section