Re: MergeContent Question

2015-10-01 Thread Bryan Bende
Hi Chris, In the MergeContent case, instead of putting \n in the file, try putting a new line by hitting return. I remembering doing this once and I had created the empty file with vi and added a new line, and then I actually got 2 new lines in my output because I guess vi has a new line characte

MergeContent Question

2015-10-01 Thread Christopher Wilson
I posted a question earlier today regarding pulling JSON out of a string from a log file. I want to aggregate those logs into a file using ReplaceText and MergeContent processors. I'm having an issue where the aggregated logs are concatenated into one large string instead of line by line (with a

Re: Parse JSON issue

2015-10-01 Thread Aldrin Piri
In this case, with your expression, you are saying select all children of the root (objects) and select their "values". This works out to be a nested array and is what you are seeing in the exception. What you are looking for is something more along the lines of: $.[0].values[0] Select the firs

Parse JSON issue

2015-10-01 Thread Christopher Wilson
I'm collecting some performance data from collectd and have a pipeline built with collectd -> Kafka -> NiFi where I intend to route the samples based on some rules and the format of those samples. The payload of the collectd samples is like the JSON below (and I've not prettified it) and I'm havin

Re: Rest API Endpoint?

2015-10-01 Thread Matt Gilman
The base context path is listed at the top of the REST API docs. Though this question has been asked a few times now so I've created a JIRA [1] to make this more obvious going forward. Thanks. Matt [1] https://issues.apache.org/jira/browse/NIFI-1017 On Thu, Oct 1, 2015 at 9:28 AM, Devin Pinksto

Re: Rest API Endpoint?

2015-10-01 Thread Devin Pinkston
http://localhost:8080/nifi-api/controller/templates That took me a while to figure out too, should update the REST API docs with that. So yours would be https://www.servercom :8080/nifi-api/controller/templates Thanks - Devin On Thu, Oct 1, 2015 at 9:24 AM, John Tit

Rest API Endpoint?

2015-10-01 Thread John Titus
Stupid question - what's the base endpoint of the NiFi rest api? For instance, if I have NiFi running at: https://www.servercom/nifi And I want to use the Rest API to get a list of templates, which is documented at: https://nifi.apache.org/docs/nifi-docs/rest-api/index.html as being: GET /co