error handling - how to capture bulletin messages in apache nifi -


i want know if there way capture bulletin messages(basically errors) appear on nifi ui , store in attribute/file can looked upon later. screen gets refreshed every 5 min , if there failure in of processors want know reason it.

i not particularly talking logging part here.

as know, bulletins reflect messages logged. content stored in {nifi_home}/logs/nifi-app.log. however, if wanted consume bulletin directly have couple different options.

  • you consume bulletins rest api. there couple endpoints accessing bulletins.

http[s]://{host}:{port}/nifi-api/controller/process-groups/{process-group-id}/status?recursive=true

this request status (including bulletins) of components under specified process group. can use alias 'root' root level process group. recursive flag indicate whether or not return children of process group or descendant components.

http[s]://{host}:{port}/nifi-api/controller/status

this request status (including bulletins) of controller level components. includes reported bulletins controller services, reporting tasks, , nifi framework (clustering messages, etc).

http[s]://{host}:{port}/nifi-api/controller/bulletin-board?limit=n&sourceid={id}&message={str}

this request access bulletins , supports filtering based components, message , limiting number of bulletins returned.

  • you create reporting task implementation has access bulletin repository. reporting tasks extension point meant report details nifi instance. require java code allow report bulletin's like. here example reports metrics ambari [1].

[1] https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-ambari-bundle/nifi-ambari-reporting-task/src/main/java/org/apache/nifi/reporting/ambari/ambarireportingtask.java


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -