Output should look like this:

2017-05-02 14:50:24,222 DEBUG [Timer-Driven Process Thread-5] 
o.a.nifi.processors.standard.InvokeHTTP 
InvokeHTTP[id=ca7759d9-015b-1000-3351-b5abbbd3f246]
Request to remote service:
        https://nifi.apache.org/
        Date: Tue, 02 May 2017 18:50:24 GMT

2017-05-02 14:50:24,361 DEBUG [Timer-Driven Process Thread-5] 
o.a.nifi.processors.standard.InvokeHTTP 
InvokeHTTP[id=ca7759d9-015b-1000-3351-b5abbbd3f246]
Response from remote service:
        https://nifi.apache.org
        Date: Tue, 02 May 2017 18:50:24 GMT
        Server: Apache/2.4.7 (Ubuntu)
        Last-Modified: Thu, 13 Apr 2017 14:43:04 GMT
        ETag: "24c8-54d0d57b02d41-gzip"
        Accept-Ranges: bytes
        Vary: Accept-Encoding
        Keep-Alive: timeout=30, max=93
        Connection: Keep-Alive
        Content-Type: text/html
        OkHttp-Sent-Millis: 1493751024222
        OkHttp-Received-Millis: 1493751024360

Andy LoPresto
[email protected]
[email protected]
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On May 2, 2017, at 2:50 PM, Frank Maritato <[email protected]> 
> wrote:
> 
> Great! Thanks Andy
> 
> On Tue, May 2, 2017 at 11:49 AM, Andy LoPresto <[email protected] 
> <mailto:[email protected]>> wrote:
> Sorry, I replied before fixing my copy/paste. You want this line:
> 
> <logger name="org.apache.nifi.processors.standard.InvokeHTTP" level="DEBUG"/>
> 
> Andy LoPresto
> [email protected] <mailto:[email protected]>
> [email protected] <mailto:[email protected]>
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
> 
>> On May 2, 2017, at 2:48 PM, Andy LoPresto <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> The request won’t be in the provenance data, but it is logged in DEBUG mode. 
>> You can enable this by adding the following line to your 
>> $NIFI_HOME/conf/logback.xml file:
>> 
>> <logger name="org.apache.nifi.processors.standard.LogAttribute" 
>> level=“DEBUG"/>
>> 
>> Then tail $NIFI_HOME/logs/nifi-app.log when you run the processor.
>> 
>> Andy LoPresto
>> [email protected] <mailto:[email protected]>
>> [email protected] <mailto:[email protected]>
>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>> 
>>> On May 2, 2017, at 2:19 PM, Frank Maritato <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> Is there any way, either through logs or through the provenance data, where 
>>> I can see the entire HTTP request (including headers) that was sent by 
>>> InvokeHTTP?
>>> 
>>> I'm seeing a weird problem where the external API I'm calling gives me a 
>>> slightly different result when I call it via curl vs when it's called 
>>> through nifi's InvokeHttp processor.
>>> 
>>> Thanks!
>>> --
>>> Frank Maritato
>>> Data Architect
>> 
> 
> 
> 
> 
> --
> Frank Maritato
> Data Architect

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to