Skip to content
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

No output to rTail #45

Closed
Garulf opened this issue Oct 17, 2016 · 1 comment
Closed

No output to rTail #45

Garulf opened this issue Oct 17, 2016 · 1 comment

Comments

@Garulf
Copy link

Garulf commented Oct 17, 2016

using the following command and a rtail server at 9091 I'm seeing no output to the server.

logagent -sv --rtailHost 127.0.0.1 --rtailPort 9091 /var/log/*.log

logagent output:

2016-10-17T08:17:28.156Z pid[27748] init plugins 2016-10-17T08:17:28.166Z pid[27748] init plugins 2016-10-17T08:17:28.168Z pid[27748] init plugins 2016-10-17T08:17:28.168Z pid[27748] ../lib/plugins/input/stdin 2016-10-17T08:17:28.205Z pid[27748] ../lib/plugins/output/stdout 2016-10-17T08:17:28.236Z pid[27748] ../lib/plugins/input/files 2016-10-17T08:17:28.454Z pid[27748] Error reading file pointers: Error: ENOENT: no such file or directory, open '/var/folders/lp/tk08lrbj2nd3bg9m5ys7jfwc0000gn/T/logagentTailPointers.json' at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at InputFile.readFilePointers (/usr/local/lib/node_modules/@sematext/logagent/lib/plugins/input/files.js:195:17) at InputFile.start (/usr/local/lib/node_modules/@sematext/logagent/lib/plugins/input/files.js:55:30) at LaCli.<anonymous> (/usr/local/lib/node_modules/@sematext/logagent/bin/logagent.js:78:9) at Array.forEach (native) at LaCli.initPugins (/usr/local/lib/node_modules/@sematext/logagent/bin/logagent.js:72:11) at LaCli.initState (/usr/local/lib/node_modules/@sematext/logagent/bin/logagent.js:162:8) at new LaCli (/usr/local/lib/node_modules/@sematext/logagent/bin/logagent.js:41:8) 2016-10-17T08:17:28.492Z pid[27748] Watching file:/var/log/accountpolicy.log from position: 96732 2016-10-17T08:17:28.501Z pid[27748] Watching file:/var/log/authd.log from position: 9526 2016-10-17T08:17:28.502Z pid[27748] Watching file:/var/log/commerce.log from position: 22759235 2016-10-17T08:17:28.502Z pid[27748] Watching file:/var/log/corecaptured.log from position: 155289 2016-10-17T08:17:28.503Z pid[27748] Watching file:/var/log/coreduetd.log from position: 0 2016-10-17T08:17:28.503Z pid[27748] Watching file:/var/log/displaypolicyd.log from position: 21377 2016-10-17T08:17:28.503Z pid[27748] Watching file:/var/log/displaypolicyd.stdout.log from position: 0 2016-10-17T08:17:28.504Z pid[27748] Watching file:/var/log/fsck_hfs.log from position: 647052 2016-10-17T08:17:28.504Z pid[27748] Watching file:/var/log/install.log from position: 5018483 2016-10-17T08:17:28.504Z pid[27748] Watching file:/var/log/opendirectoryd.log from position: 3638 2016-10-17T08:17:28.504Z pid[27748] Watching file:/var/log/secinitd.log from position: 408 2016-10-17T08:17:28.505Z pid[27748] Watching file:/var/log/system.log from position: 3382822 2016-10-17T08:17:28.505Z pid[27748] Watching file:/var/log/wifi.log from position: 1677 2016-10-17T08:17:28.684Z pid[27748] Logagent report: pid[27748] 722 ms 0 lines parsed. 0 lines/s 0.000 MB/s - empty lines: 0 2016-10-17T08:17:28.684Z pid[27748] Logagent stats: usedTokens=0 shippedLogs=0 httpFailed=0 httpRetransmit=0 throughputLinesPerSecond=0 2016-10-17T08:17:28.684Z pid[27748] Memory stats: heapUsedMB=14 heapTotalMB=30 memoryRssMB=40

This is running on OSX 10.11

megastef added a commit that referenced this issue Oct 17, 2016
megastef added a commit that referenced this issue Oct 17, 2016
@megastef
Copy link
Contributor

@akrasia please try again with logagent version 2.0.23:

npm i -g @sematext/logagent
logagent --rtailWebPort 8080 --rtailPort 9999 -g '/var/log/**/*.log'

I assume it solves the problem, you mentioned in kilianc/rtail#117
bildschirmfoto 2016-10-17 um 23 00 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants