Re: ASN.1 to text file

2023-09-20 Thread Dan S
Katarzyna,
I apologize if this is a duplicate email but I did not see my first email
show up in the archives.
 There is actually a controller service JASN1Reader which can read ASN.1.
This can be used in the ConvertRecord processor with JsonRecordSetWriter
(to write JSON), CSVRecordSetWriter (to write CSV)
or FreeFormTextRecordSetWriter (to write text). Per NIFI-6752
 it seems you have to
build NIFI with the 'include-asn1' to have  JASN1Reader included in the
assembly. For more information on how to use the ConvertRecord processor
see this great tutorial


On Wed, Sep 20, 2023 at 10:19 AM Katarzyna Janeczko (Nokia) <
katarzyna.janec...@nokia.com> wrote:

> Hi,
> I am writing to you to ask if it is possible to build a processor using
> already existing tools in Apache Nifi to convert ASN.1 file to
> text/json/yaml/csv file?
>
> Best,
> Katarzyna Janeczko
>


Re: ASN.1 to text file

2023-09-20 Thread Peter Turcsanyi
Hi Katarzyna,

You can use ConvertRecord with JASN1Reader on the reader side and Json, XML
or other record writers on the writer side. You will also need a source
processor to get the ASN.1 file from your external source (it depends on
the source you use).

The NAR bundle containing JASN1Reader is not part of the standard NiFi
distribution due to size limitations but it is released in the same process.
You need to download it and install it in your NiFi environment (copying to
'lib' or 'extensions' folders).

NAR module name: nifi-asn1-nar
Download link from Maven Central:
https://search.maven.org/remotecontent?filepath=org/apache/nifi/nifi-asn1-nar/1.23.2/nifi-asn1-nar-1.23.2.nar

Regards,
Peter Turcsanyi

On Wed, Sep 20, 2023 at 4:46 PM Katarzyna Janeczko (Nokia) <
katarzyna.janec...@nokia.com> wrote:

> Hi,
> I am writing to you to ask if it is possible to build a processor using
> already existing tools in Apache Nifi to convert ASN.1 file to
> text/json/yaml/csv file?
>
> Best,
> Katarzyna Janeczko
>


Re: ASN.1 to text file

2023-09-20 Thread Dan S
Katarzyna,
 There is actually a controller service JASN1Reader which can read ASN.1.
This can be used in the ConvertRecord processor with JsonRecordSetWriter
(to write JSON), CSVRecordSetWriter (to write CSV)
or FreeFormTextRecordSetWriter (to write text). Per NIFI-6752
 it seems you have to
build NIFI with the 'include-asn1' to have  JASN1Reader included in the
assembly. For more information on how to use the ConvertRecord processor
see this great tutorial



On Wed, Sep 20, 2023 at 10:19 AM Katarzyna Janeczko (Nokia) <
katarzyna.janec...@nokia.com> wrote:

> Hi,
> I am writing to you to ask if it is possible to build a processor using
> already existing tools in Apache Nifi to convert ASN.1 file to
> text/json/yaml/csv file?
>
> Best,
> Katarzyna Janeczko
>


ASN.1 to text file

2023-09-20 Thread Katarzyna Janeczko (Nokia)
Hi,
I am writing to you to ask if it is possible to build a processor using already 
existing tools in Apache Nifi to convert ASN.1 file to text/json/yaml/csv file?

Best,
Katarzyna Janeczko