phaneendra kumar
phaneendra kumar

Reputation: 120

For CDAP Logging HTTP RESTful API, how to pass filter parameter

As per CDAP documentation a filter string can be supplied as an optional parameter. It will filter the returned log entries to those that match the supplied string.

https://docs.cask.co/cdap/6.0.0/en/reference-manual/http-restful-api/logging.html#http-restful-api-logging

How do i pass it in the rest api call ,if i need to filter on log level as error only. I have tried to add &logLevel=ERROR but it did not work, please guide me on how can we pass a filter.

Upvotes: 1

Views: 453

Answers (1)

Sergi Muñoz
Sergi Muñoz

Reputation: 75

I think here there is some confusion about Data Fusion and CDAP.

As I tried to mentioned in my last message, Data Fusion and CDAP are not the same. Data Fusion is an independent product which is built on the open source project CDAP, but with its own API and tools/functionalities integrated in the Cloud.

If you want to view your logs, here you have the documentation for audit logs and here you can search for pipeline logs in Stackdriver (another integrated product in the Cloud). These docs will guide you through the needed steps in GCP for what you want to search.


EDIT:

It appears to be actually possible to use CDAP endpoints for this matters.

@phaneendra shared a way to send API requests to CDAP endpoints by navigating to System Admin -> Configuration -> Make Http Calls on your Datafusuion instance. This allows you to pull logs and resolve the posted issue.

Additionally, you can also use the documented CDAP reference guide to create and manage your Cloud Data Fusion instances and pipelines.

Upvotes: 1

Related Questions