Return-Path: X-Original-To: apmail-nifi-users-archive@minotaur.apache.org Delivered-To: apmail-nifi-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 149E318C2E for ; Sun, 8 Nov 2015 13:09:44 +0000 (UTC) Received: (qmail 88149 invoked by uid 500); 8 Nov 2015 13:09:43 -0000 Delivered-To: apmail-nifi-users-archive@nifi.apache.org Received: (qmail 88129 invoked by uid 500); 8 Nov 2015 13:09:42 -0000 Mailing-List: contact users-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@nifi.apache.org Delivered-To: mailing list users@nifi.apache.org Received: (qmail 88119 invoked by uid 99); 8 Nov 2015 13:09:42 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Nov 2015 13:09:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AFB77C53B8 for ; Sun, 8 Nov 2015 13:09:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mVe2VHfMO7fa for ; Sun, 8 Nov 2015 13:09:41 +0000 (UTC) Received: from mail-yk0-f180.google.com (mail-yk0-f180.google.com [209.85.160.180]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C141A2303F for ; Sun, 8 Nov 2015 13:09:40 +0000 (UTC) Received: by ykdv3 with SMTP id v3so139076551ykd.0 for ; Sun, 08 Nov 2015 05:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wpc9EIwchrBugZokFTWEqFcl2duKlTobZfZ7x23UnxE=; b=VK/fzC1ULzxNk2fwNvCglgbM0QkRzfycPxHyc6Jo1z59KivjIJt6SJiTh1Zhiqtygp 9vhePYgsDGJmFT9uDeS+ZyE1Y7r9GTRF7RAKlv9vxpq6/wA+wCVozzheiuls88y3ooXW XFkgWqI18KLGzu2LMWbbxpiMSn4wiRhdd035oynm8T4RDiyKmcjMtXulb3M0NR70bUIp 1pwPQqBBmuBFeR5dEIRjoUAWg3K+fFG1PsY8DBKydnoJbctFtXkEBPWCq4NWoAp9t2Nf QNE6VbWT8MI7KynBIjy0vXEE0Bhj+mj66zCgQO7U0tB40rQTSVgz0/KqkWzdmCY62Fdq cYZw== MIME-Version: 1.0 X-Received: by 10.129.147.135 with SMTP id k129mr18203707ywg.233.1446988174249; Sun, 08 Nov 2015 05:09:34 -0800 (PST) Received: by 10.37.98.14 with HTTP; Sun, 8 Nov 2015 05:09:34 -0800 (PST) Date: Sun, 8 Nov 2015 08:09:34 -0500 Message-ID: Subject: A "proxy" question from the irc channel From: Tony Kurc To: users@nifi.apache.org Content-Type: multipart/alternative; boundary=94eb2c0816081ee8a40524073037 --94eb2c0816081ee8a40524073037 Content-Type: text/plain; charset=UTF-8 " I'd appreciate it if someone could tell me how to easily change a flow with JSON lines like {JSON} to {"x"={JSON}} . The ReplaceText processor seems like the right thing, but when I add almost anything to the ReplacementValue field to change the output, it causes problems and doesn't include the new literal text, or drops the matching group altogether, showing $1 as a literal." --94eb2c0816081ee8a40524073037 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
" I'd appreciate it if someone could tell me how = to easily change a flow with JSON
lines like=C2=A0 {JSON}=C2=A0 to {&quo= t;x"=3D{JSON}} . The ReplaceText processor
seems like the right thi= ng, but when I add almost anything to the
ReplacementValue field to chan= ge the output, it causes problems
and doesn't include the new litera= l text, or drops the matching
group altogether, showing $1 as a literal.= "

--94eb2c0816081ee8a40524073037--