Enter invisible characters in a log sample
You may need to use an invisible character as a log delimiter or quote character. This topic describes how to enter an invisible character in a log sample.
Background information
Using common characters like commas (
,) or semicolons (;) as a delimiter or quote character can cause parsing errors, especially if you need to preserve the original log format. Invisible characters, which are rare in normal text, prevent these errors.Invisible characters are non-printing characters, corresponding to ASCII codes 1-31 and 127. When collecting data in delimiter mode, you can set an invisible character as the delimiter and quote character. To specify an invisible character, use its hexadecimal ASCII representation in the format
0x${HEX}, whereHEXis the character's hexadecimal code.This procedure uses a log sample of
123456780, a delimiter of0x01, and a quote character of0x02to demonstrate how to insert the invisible character0x01between the digits 5 and 6.
Procedure
Enter the Delimiter - Text Log mode. For detailed steps, see Collect text logs from a host.
On the Logtail configuration page, right-click a blank area in your browser and click Inspect.

In the panel that opens, click the Console tab.
Enter the following code and press Enter.
const input = document.createElement('input'); document.body.appendChild(input); input.setAttribute('value', String.fromCharCode(0x01)); input.select(); if (document.execCommand('copy')) { document.execCommand('copy'); console.log('Copy successful'); }Paste the copied character between the digits 5 and 6 in the log sample.

Set the delimiter and quote character to the respective invisible characters.
