TLDR YULL was initially confused about making API calls to OpenObserve Cloud while working on a technical test involving ZincSearch. Prabhat clarified the distinction between ZincSearch and OpenObserve cloud and advised on how to proceed.
You can't make API calls to OpenObserve cloud for now other than ingestion. We plan to add functionality in OpenObserve cloud next week that will allow you to make the API calls
Really, thanks so much! Success and luck!
What are you trying to build?
using the APIs
Actually, apparently I'm solving a technical test where they ask me to use ZincSearch, and I already managed to do it from localhost, but I thought they were asking me to make a direct request. It was my confusion, but now I understood that I am on the right track in my test.
It was that more than anything, sorry for the inconvenience and really thank you very much.
ZincSearch and OpenObserve cloud are different tools.
You need to download and run it yourself
there is no cloud service for it
Yes, what I did, I even managed to do the index and search, I just thought I could do it directly in OpenObserver. I was guided by your video, so thank you!
YULL
Fri, 03 Nov 2023 18:06:37 UTC```package main import ( "fmt" "io" "log" "net/http" "strings" ) func main() { query := `{ "query": { "sql": "SELECT * FROM \"data\"", "start_time": 1698814800000000, "end_time": 1698987540000000, "from": 0, "size": 10, "track_total_hits": false, "sql_mode": "context" }, "aggs": { "agg1": "", "agg2": "", } }` req, err := http.NewRequest("POST", "", strings.NewReader(query))
if err != nil {
log.Fatal(err)
}
req.Header.Set("Authorization", "Bearer Token")
req.Header.Set("Content-Type", "application/json")
resp, err := (req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
log.Println(resp.Status)
body, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}
fmt.Println(string(body))
}```