--- title: "Data Exporter | Examples | N3uron KB V1.22" slug: "data-exporter-examples" description: "Data Exporter is a N3uron module designed to generate XML or CSV files containing raw or aggregated data. This data is collected from selected tag groups…" updated: 2025-09-30T15:55:33Z published: 2025-12-23T11:38:20Z canonical: "docs.n3uron.com/data-exporter-examples" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.n3uron.com/llms.txt > Use this file to discover all available pages before exploring further. # Examples ## FTP Example In this example, the **Data Exporter** module is used to upload all data sent from an OPC UA client to an FTP server. - **Step 1**: Add a new module in the **"**Modules**"** section, choose a name, and select **"**DataExporter**"** in the **"**Module type**"** field. ## ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2010-%20Creating%20new%20module%20instances.png)Figure 6: Creating a new module ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2011-%20Choosing%20a%20module(1).png)Figure 7: Setting the instance type - **Step 2:** Configure the **Logger** and **API** for the **Data Exporter** module. In this example, the default configuration has been left unchanged, since in most cases, this is a valid configuration option. - **Step 3:** Add a new agent in the “Model” section and choose a name for it. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2012-%20Creating%20a%20new%20agent(1).png)Figure 8: Creating a new Agent - **Step 4:** Configure the Agent (Output path, File compression, File type, Date format, File upload, etc.) and save the changes. In this example, data will be transferred to FileZilla, which is a free local FTP client. Since the files will be uploaded to an FTP server, the agent has been named “Agent_FTP“. All files will be exported as XML Files. The date format is ISO8601. For the connection section, configuration would be as follows: Host: localhost, Port: 21, Username: FTP server. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2013-%20Agent%20parameters(1).png)Figure 9: Agent parameters ![FTP%201](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/FTP%201.png) Figure 10: Agent parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2015-%20FileZilla%20FTP%20server(1).png)Figure 11: FileZilla FTP server - **Step 5**: Add a new group in **Agent** and select a name for it. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2016-%20Creating%20a%20new%20group(2).png)Figure 12: Creating a new Group - **Step 6:** Configure the **Group** (Filename, Period, Mode, Input tag group, etc.). In this example, the Group has been named “Electrical meter”, since the data has been collected from an electrical meter. The “Electrical meter” tag group has been selected in the “Input Tag Group” field in order to filter the data due to be exported. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2017-%20Group%20parameters(1).png)Figure 13: Group parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2018-%20Tag%20group%20options.png)Figure 14: Tag groups options **Result:** ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2019-%20Exported%20file%20folders(1).png)Figure 15: Exported file folders ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2020-%20Exported%20group%20folders(1).png)Figure 16: Exported group folders Exported XML file: ```markup - ``` ## SFTP Example In this example, the **Data Exporter module** is used to upload data being sent from an OPC UA client to an SFTP server. - **Step 1**: Add a new module in the "Modules" section, choose a name and select "DataExporter" in the "Module type" field. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2021-%20Creating%20new%20module%20instances.png)Figure 17: Creating a new module ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2022-%20Choosing%20a%20module(1).png)Figure 18: Setting the instance type - **Step 2:** Configure the **Logger** and **API** for the **Data Exporter** module. In this example, the default configuration has been left as it is, since in most cases, this is a valid configuration option. - **Step 3:** Add a new agent in the “Model” section and choose a name for it. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2023-%20Creating%20a%20new%20agent(1).png)Figure 19: Creating a new Agent - **Step 4:** Configure the **Agent** (Output path, File compression, File type, Date format, File upload, etc.) and save the changes. In this example, the data will be transferred to Rebex Tiny, which is a free local SFTP server. Since the files will be uploaded to a local SFTP server, the Agent has been named "Agent_SFTP". The files will be exported as CSV Files. The date format is ISO8601. For the connection section, the configuration would be: Host: localhost, Port:22, Username: tester.![SFTP%202](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/SFTP%202.png) Figure 20: Agent parameters ![SFTP%201](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/SFTP%201.png) Figure 21: Agent parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2026-%20Rebex%20Tiny%20SFTP%20Server(1).png)Figure 22: Rebex Tiny SFTP server - **Step 5:** Add a new group in the “Agent” field and specify a name for it. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2027-%20Creating%20a%20new%20group(2).png)Figure 23: Creating a new Group - **Step 6:** Configure the **Group** (Filename, Period, Mode, Input tag group, etc.). In this example, the Group has been named “Electrical meter”, since the data has been collected from an electrical meter. The “Electrical meter” tag group has been selected in the “Input Tag Group” field in order to filter the data due to be exported. ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2028-%20Group%20parameters(1).png)Figure 24: Group parameters ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2029-%20Tag%20group%20options.png)Figure 25: Tag group options **Result:** ![](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/Figure%2030-%20Exported%20data%20folder(1).png)Figure 26: Exported data folder Exported CSV file: ```none #Name=Electrical meter #Start=2021-04-19T10:39:00Z #End=2021-04-19T10:40:00Z :Tag,min,max,first,last,avg,count,good ANGLE_PHASE,333.97,333.97,333.97,333.97,333.97,1,1.00 CURRENT,4.77,4.77,4.77,4.77,4.77,1,1.00 ENERGY_ACTIVE_IMPORTED,8545.32,8545.32,8545.32,8545.32,8545.32,1,1.00 ENERGY_ACTIVE_EXPORTED,"null","null","null","null","null",0,0 FREQUENCY,"null","null","null","null","null",0,0 POWER_ACTIVE,856.02,856.02,856.02,856.02,856.02,1,1.00 POWER_ACTIVE_MAX,"null","null","null","null","null",0,0 POWER_APPARENT,952.82,952.82,952.82,952.82,952.82,1,1.00 POWER_FACTOR,"null","null","null","null","null",0,0 POWER_REACTIVE,-418.39,-418.39,-418.39,-418.39,-418.39,1,1.00 VOLTAGE,234.61,234.61,234.61,234.61,234.61,1,1.00 ```