Skip to main content

Problems with Stream IDs in ILA API


Glen Sykes
Seasoned Practitioner

@Tanmay Deshpande and @Tom Jonsthovel , posting your question here to make it easier to engage the developer team for support.

 

We have successfully created the ILA group and can call the API, however we currently get stuck on ingesting logs (400 - bad request). Please see our steps below. 

 

It would be great if you could advise on how to properly ingest logs and share a Jupyter notebook with some examples. Also, would be great to understand the link between the ingested log and the container. Eg, do we need to add a 'log' property to the container definition?

  1. Created a data model. 

0?ui=2&ik=7401a01781&attid=0.1&permmsgid=msg-f:1811730209058770055&th=19248f06b3cacc87&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ8vgJ2y1gjCHFYr2q69XSq1-VI-lDfzdcwNT9JdRZ-Xyo9U41Aa739MHAXK5ykyYl2iKtR6htBwmucrUlp3fTUju3G6U-hd1ZdKcFOuZ37eH--6qOxy3AlJSL8&disp=emb

  1. Ingest a log into the container with externalId "Pump" and link to "Pump" instance with externalId "66470bf0-5c07-4a39-8878-0adf4dc7f448"

0?ui=2&ik=7401a01781&attid=0.2&permmsgid=msg-f:1811730209058770055&th=19248f06b3cacc87&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ9xTRfnkNo48BPnNMaTe0borVjZmLuflhEYklIRgnw1IEvGaVO8rNvKbwTC-6F-19I2t9tV4m69ihQA2M-xy0dMzOLDxaLmErlEjG7AomEjTnAq29_0gCtg0YY&disp=emb

  1. Get 400 on return.

0?ui=2&ik=7401a01781&attid=0.3&permmsgid=msg-f:1811730209058770055&th=19248f06b3cacc87&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ_mndcdkuZYMaH_DWDQ7L_vDFa5RV9bQqHHYMw7ZMd3Y8FCCBVoiLJPtU-ETMDcVl9rdnkTTWW1BaJpES9TZNbmgr7YnqYPRgE0O9p5NYZasLjfZP69yAfYtRg&disp=emb


 

5 replies

Glen Sykes
Seasoned Practitioner
  • Author
  • Seasoned Practitioner
  • 123 replies
  • October 2, 2024

@Jason Dressel replied with code examples, attached 


Glen Sykes
Seasoned Practitioner
  • Author
  • Seasoned Practitioner
  • 123 replies
  • October 2, 2024

Now, when I update my code, I get following error

 

cognite.client.exceptions.CogniteAPIError: Stream test1 not found | code: 400 | X-Request-ID: 2031bd50-9f80-928e-a20a-0392ec2acd69

 

I tried using logs1, test5, and so on. Can someone please confirm that these streams have already been created for this project - [redacted]


Glen Sykes
Seasoned Practitioner
  • Author
  • Seasoned Practitioner
  • 123 replies
  • October 2, 2024

We’ve found the issue with our internal deployment on this.  The API should start working properly shortly!


Glen Sykes
Seasoned Practitioner
  • Author
  • Seasoned Practitioner
  • 123 replies
  • October 2, 2024

The fix should be done.  Please try again and let us know how you get on!  Sorry about the wait.

Glen


APSHANKAR Sagar
Committed

I tried using the notebooks that Glen sent us. I get an error when calling the logs endpoint. I tried using both the Source id (object id from AD group and group id.)

Is the client version pertinent? I have 7.70.3 but in Glen’s notebook, it is 7.58.8


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings