Discover Packages
github.com/minefuto/syslogreplay
command
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jun 14, 2021
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
syslogreplay
A tool for sending syslog packet from stdin or syslog file.
This is useful when testing the syslog server by the following functions.
send syslog packet interactively from stdin
reproduce syslog transmission interval from syslog file
source IP address spoofing
select the source/destination udp port
convert syslog's timestamp to current time
Usage
This tool requires the administrative privileges.
$ syslogreplay -h
Usage:
syslogreplay [option] dest-address [src-address]
Option:
-c Convert syslog's timestamp to the current timestamp
-d uint
Specify the destination port (default 514)
-f string
Specify the syslog format (default "rfc3164")
-s uint
Specify the source port (default 514)
Format:
rfc3164 : Jan _2 15:04:05
rfc5424 : 2006-01-02T15:04:05Z07:00
rfc5424TenMilli : 2006-01-02T15:04:05.00Z07:00
rfc5424Milli : 2006-01-02T15:04:05.000Z07:00
rfc5424Micro : 2006-01-02T15:04:05.000000Z07:00
from stdin
from syslog file
Installation
go install github.com/minefuto/syslogreplay@latest
Required: gcc, libpcap
Supported OS
Linux
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.