Support Questions
Find answers, ask questions, and share your expertise

Replace text processor: search and replace multiple values

Highlighted

Replace text processor: search and replace multiple values

New Contributor

Hi Community , 

i am trying to use multiple search records and replace with appropriate value using the "replace_text" processor. instead of using multiple replace text processors is there any way we can do it using single processor, 
ex : 
\ "  with " , " { with { , and  }"  with }

1. on the first hand why i am getting these characters since my kafka consumer don't have these and i am reading it as Json file . 
i appreciate the help .Thanks in advance 
@MattWho @adhishankarit @Nifi 

1 REPLY 1

Re: Replace text processor: search and replace multiple values

Master Guru

@IAMSID 

I think you are asking two different questions here.  In order for the community to help, it would be useful if you gave fo detail around each of your issues.  Your example is not clear to me.  NOt knowing anything about your source data, what characters are you not expecting?

Providing the following always helps:
1. A dataflow template showing what you have done.
2. Sample input file
3. Desired output file base on above sample

For query 2, 
1. How is data being ingested in to NiFi?
2. Configuration of processor components used to ingest data (ConsumeKafka<version>, ConsumeKafkaRecord<version>, recordWriter, etc...)?
3. What other processors does the FlowFile pass through in this dataflow (flow template)?

Thanks,
Matt