Guidance on Using ZincSearch and API Calls for OpenObserve Cloud

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.

Photo of YULL
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)) }```

Photo of Prabhat
Prabhat
Fri, 03 Nov 2023 18:07:47 UTC

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

Photo of YULL
YULL
Fri, 03 Nov 2023 18:08:30 UTC

Really, thanks so much! Success and luck!

Photo of Prabhat
Prabhat
Fri, 03 Nov 2023 18:09:01 UTC

What are you trying to build?

Photo of Prabhat
Prabhat
Fri, 03 Nov 2023 18:09:10 UTC

using the APIs

Photo of YULL
YULL
Fri, 03 Nov 2023 18:10:10 UTC

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.

Photo of YULL
YULL
Fri, 03 Nov 2023 18:10:40 UTC

It was that more than anything, sorry for the inconvenience and really thank you very much.

Photo of Prabhat
Prabhat
Fri, 03 Nov 2023 18:10:45 UTC

ZincSearch and OpenObserve cloud are different tools.

Photo of Prabhat
Prabhat
Fri, 03 Nov 2023 18:11:28 UTC

Take a look at the examples here

Photo of Prabhat
Prabhat
Fri, 03 Nov 2023 18:11:42 UTC

You need to download and run it yourself

Photo of Prabhat
Prabhat
Fri, 03 Nov 2023 18:11:47 UTC

there is no cloud service for it

Photo of YULL
YULL
Fri, 03 Nov 2023 18:12:33 UTC

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!