Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3b31099

Browse files
author
Manuel Sabban
authored
stdin correction. (#41)
* stdin correction. * archive is not is not implemented.
1 parent b3923cc commit 3b31099

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

nxtool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def __create_argparser():
7575
log_sources.add_argument('--elastic-source', action='store_true')
7676
log_sources.add_argument('--flat-file', type=str)
7777
log_sources.add_argument('--stdin', action='store_true')
78-
log_sources.add_argument('--archive', action='store_true')
7978

8079
log_destinations = parser.add_argument_group('Log destinations')
8180
log_destinations.add_argument('--elastic-dest', action='store_true')

nxtool/log_providers/flat_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, fname=None):
2727
try:
2828
ftype = mimetypes.guess_all_extensions(self.fname)[0]
2929
except AttributeError: # `self.fname` is None
30-
self.__transform_logs(fileinput.input(self.fname))
30+
self.__transform_logs(fileinput.input("-"))
3131
except IndexError: # `self.fname` has no guessable mimtype
3232
self.__transform_logs(fileinput.input(self.fname))
3333
else:

0 commit comments

Comments
 (0)