Hi @aaronsachs, thank you for the reply.
It wasn’t easy to sniff the network traffic and analyze the GUI with the developer tools.
But now I got most of the things running.
It would be very helpful if you could comment on what I have made.
Determining which parameters are mandatory and their meaning was the hardest part.
I couldn’t find anything about e.g. ViewDTO data type.
Or what the parameter rollup for the pivot search_type means.
Or what a query object looks like.
…
Thank you
Frank
Here are the JSON objects for the requests:
{
"queries" : [
{
"search_types" : [
{
"query" : null,
"type" : "messages",
"filter" : null,
"decorators" : [],
"offset" : 0,
"id" : "5ff438549150ddc6b4ce531b",
"limit" : 20,
"sort" : [
{
"field" : "timestamp",
"order" : "ASC"
}
],
"name" : null,
"streams" : [],
"timerange" : null
}
],
"query" : {
"type" : "elasticsearch",
"query_string" : "*"
},
"id" : "5ff438549150ddc6b4ce531a",
"timerange" : {
"type" : "absolute",
"from" : "2021-01-05T09:58:24.000+01:00",
"to" : "2021-01-05T11:08:24.000+01:00"
}
}
],
"id" : "5ff438549150ddc6b4ce5319"
}
- Save search (create view)
{
"type" : "SEARCH",
"id" : "5ff3487156581d5486cb2f52",
"search_id" : "5ff438549150ddc6b4ce5319",
"title" : "Search all",
"state" : {}
}
{
"queries" : [
{
"search_types" : [
{
"id" : "5ff4367b006cfc944ed3fc22",
"column_groups" : [],
"rollup" : 1,
"type" : "pivot",
"row_groups" : [
{
"limit" : 10000,
"type" : "values",
"field" : "source"
}
],
"series" : [],
"name" : null
}
],
"timerange" : {
"type" : "absolute",
"from" : "2021-01-05T09:50:51.000+01:00",
"to" : "2021-01-05T11:00:51.000+01:00"
},
"id" : "5ff4367b006cfc944ed3fc21",
"query" : {
"type" : "elasticsearch",
"query_string" : "*"
}
}
],
"id" : "5ff4367b006cfc944ed3fc20"
}