Created
March 9, 2023 21:01
-
-
Save carlos-teles/8ca1900930c8a5df1b17cdc026cda1a1 to your computer and use it in GitHub Desktop.
Send syslog linux from nc - netcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '<14>_sourcehost_ messagetext' | nc -v -u -w 2 _desthost_ 514 | |
Example: | |
echo '<14>192.168.0.5 messagetext' | nc -v -u -w 2 192.168.0.105 514 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment