mbucc / ai

Artificial Ignorance: monitor messages you don't recognize in logs you don't ignore
ISC License
1 stars 2 forks source link

logtail doesn't like -s arg when used with -o #1

Open mbucc opened 9 years ago

mbucc commented 9 years ago
mark@marks-mbp:~/src/ai% ./logtail -s testing/1.log -o testing/1.offset                                                                                                                                 <<<
ERROR 181 - Input parameter error, testing/1.log.
mark@marks-mbp:~/src/ai% ./logtail testing/1.log -s -o testing/1.offset

  Usage: logtail [log_file] <offset_file>
     or: logtail [-l log_file] <-o offset_file> <-d rolled_log_directory>
       : <-f rolled_log_filename> <-r> <-s> <-t> <-b>
     or: logtail -h

mark@marks-mbp:~/src/ai% ./logtail testing/1.log -o testing/1.offset -s

  Usage: logtail [log_file] <offset_file>
     or: logtail [-l log_file] <-o offset_file> <-d rolled_log_directory>
       : <-f rolled_log_filename> <-r> <-s> <-t> <-b>
     or: logtail -h

mark@marks-mbp:~/src/ai% ./logtail testing/1.log -s
mark@marks-mbp:~/src/ai% echo $?
0
mark@marks-mbp:~/src/ai% 
mbucc commented 9 years ago

Actually, that last command created an offset file named '-s' in the current directory. I'm going to treat this option as broken for now. (Based on the output of -h, it may just work in combo with the -f arg, but that seems not very useful.)