Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
send log file through ncat, can't recognize new lines... #1316
I'm trying to send a log file with
problem is that send as one line, for instance if I create a txt with
it will send it as "one line second line third line"
send it correctly but it takes so much time if there are thousands of lines...
Am I doing something wrong?
System OS: Centos 6,9
@rcv211 syslog doesn't allow multiline log entries by default. Depending on the implementation, it may strip them or encode/escape them. This is most likely to prevent log event injection. You may be able to find a configuration or setting for rsyslogd that allows them to be let through.
This doesn't mean that we can't make Ncat do what you want, though. Pull Request #808 has an interesting new feature: it sets a delimiter character and forces Ncat to send when it encounters the character. By setting the character to a newline, you could probably accomplish what you want. However, I haven't looked at the PR recently and I don't know if this application is fully handled in its existing state.