How to save Terminal data to file

Terminal data of an asset typically refers to the information and status data transmitted from an asset's onboard terminal unit. This data includes various parameters and metrics that are essential for tracking and managing the asset's operations.

On-Site Servers

Please follow the below steps to save the terminal data to a file for on-site servers.

To log terminal data for specific assets using NLog.config, follow these steps:

1. Locate NLog.config File:
Edit the NLog.config file found under `C:\GpsGateServer\Franson NMEA Service`.

2. Update Configuration:
Identify the placeholders in the configuration where "Username" represents the asset's Username and "Protocol" denotes the tracker protocol (e.g., "Teltonika", "Sensorlogic", "Meiligao").

Add the following lines inside `<targets>` and `<rules>`:

<targets>
<target name="terminal.Username" xsi:type="File" layout="${longdate} | ${message}" fileName="C:\GpsGateServer\TerminalLog\${logger} ${shortdate}.log" />
... other targets ...
</targets>

<rules>
<logger name="Terminal.Protocol.Username" minlevel="Info" writeTo="terminal.Username" />
... other rules ...
</rules>

Ensure to replace:
- `"Username"` with the actual Username of the asset you want to log.
- `"Protocol"` with the name of the tracker Protocol used by the asset (e.g., "Teltonika", "Sensorlogic", "Meiligao").

By implementing the above configuration, each day, a new log file will be created for each tracker under `C:\GpsGateServer\TerminalLog\`.


Save the modified NLog.config file after making these additions.

Cloud Servers

For cloud servers, copy the terminal data from the Terminal window and save it in a text file:

1. In VehicleTracker, go to Main Menu > Tracker Configuration > Terminal and select the asset at the top of the window.

2. Click the Copy logs button (the copy icon next to the asset list, as shown in the image below). The message Copied logs to clipboard confirms the copy.

3. Paste the data into a text file and save the file.