New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netsniff-ng output file name by date #158

Closed
vkochan opened this Issue May 3, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@vkochan
Contributor

vkochan commented May 3, 2016

Add support output file name format similary like in tcpdump:

tcpdump -i ethx -w /destination/tcpd_'%Y%m%d_%H%M'.pcap -n -G 3600

The subject was discussed in the following thread: http://comments.gmane.org/gmane.linux.network.netsniff-ng/1538

@tklauser tklauser added the wishlist label Jun 14, 2016

@tklauser tklauser self-assigned this Nov 7, 2016

@tklauser tklauser removed their assignment Oct 20, 2017

droberson added a commit to droberson/netsniff-ng that referenced this issue Apr 20, 2018

netsniff-ng: add date format strings to --out.
Fixes #158

This adds the ability to use date(1) style format strings when
specifying an output file.

Example:

netsniff-ng --out %Y-%m-%d.pcap ### outputs to 2018-04-20.pcap

Signed-off-by: Daniel Roberson daniel@planethacker.net

droberson added a commit to droberson/netsniff-ng that referenced this issue Apr 20, 2018

add date format strings to --out
netsniff-ng: add date format strings to --out.

Fixes #158

This adds the ability to use date(1) style format strings when
specifying an output file.

Example:

netsniff-ng --out %Y-%m-%d.pcap ### outputs to 2018-04-20.pcap

Signed-off-by: Daniel Roberson daniel@planethacker.net

@tklauser tklauser closed this in d720926 May 14, 2018

tklauser added a commit that referenced this issue May 14, 2018

man: netsniff-ng: document time formats for -o/--out
Commit e3e8eea41966 ("netsniff-ng: add date format strings to --out.")
introduced the possibility to specify time formats in the -o/--out
parameter. Document this in netsniff-ng(8)

Updates #158

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment