To configure Logtail to collect text logs, you must configure a regular expression based on your log sample if you select to use the Full Mode to parse logs.
Log Service supports automatically generating the regular expression. Paste your log sample in the Log Sample field to automatically generate the regular expression.
If the automatically generated regular expression do not fully cover your log sample, you can also write a regular expression manually by referring to the regular expression sample of Apache (for more information, see Apache logs).
Take the standard Nginx access logs as an example.
Configure parts of the regular expression first and use
.*for the other parts.
Modify the regular expression based on the log sample.
If you have any issues, contact our after-sales support.