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

maxtail output: empty... #2

Open
jimaek opened this issue Jul 1, 2014 · 8 comments
Open

maxtail output: empty... #2

jimaek opened this issue Jul 1, 2014 · 8 comments

Comments

@jimaek
Copy link
Member

jimaek commented Jul 1, 2014

[root@xbmc ~]# ./maxtail --alias=dak --token=xxx--secret=xxx --format=nginx --interval=10
2014/07/02 02:58:05 empty ...
2014/07/02 02:58:15 empty ...
2014/07/02 02:58:25 empty ...

--verbose shows a bunch of data but nothing in normal mode

@jmervine
Copy link
Contributor

jmervine commented Jul 2, 2014

"empty..." means no data is coming though on /v3/reporting/logs.json -- or more simply, the zone isn't getting any traffic. If you pass the "-q" flag, it will suppress that.

To verify, you can use maxcurl /v3/reporting/logs.json?start=<time-Nsec>&end=<time>, it should come back with no results as well.

@jimaek
Copy link
Member Author

jimaek commented Jul 2, 2014

The zone is getting A LOT of traffic.
I forgot to mention the strange part. If Justin runs the exact same command(my keys) then it works for him. But not for me.

@jmervine
Copy link
Contributor

jmervine commented Jul 3, 2014

Interesting, what OS? Mac?

@jimaek
Copy link
Member Author

jimaek commented Jul 3, 2014

CentOS release 6.5 (Final) 2.6.32-431.17.1.el6.x86_64

@jmervine
Copy link
Contributor

jmervine commented Jul 3, 2014

Interesting, okay. I was able to reproduce the issue on a CentOS box whose TZ is UTC. Am I right in guessing that you're box is UTC as well?

@jmervine
Copy link
Contributor

jmervine commented Jul 3, 2014

So digging deeper, Max's Log endpoint uses GMT*, and therefore I'm going to update maxtail to do the same, but I no longer think TZ is the only issue. I think there's also an issue with with the API endpoint.

Note: Working updates on branch issues/2.

What I've tried:

1.) Started a looping curl to a file on my cdn, hitting http://cdn.mervine.net/bootstrap/master.css?<date stamp>.
2.) Checked http://cp.maxcdn.com and verified that the calls are showing there.
3.) Started maxtail -i 1, since updating the call to use UTC, I've getting occasional results (all misses).
4.) Used maxcurl to request a range of data (using UTC time) of current to 1 minute past; no records:

{
  "limit": 100,
  "next_page_key": null,
  "page": 1,
  "records": [],
  "request_time": 6
}

5.) Created a tailer in ruby (see: https://gist.github.com/jmervine/1a75c7b8b7b454f13c39) and got basically the same results -- little or no log message.

@jimaek
Copy link
Member Author

jimaek commented Jul 3, 2014

[root@xbmc xbmc]# date +%Z
EEST

@jmervine jmervine reopened this Jul 6, 2014
@jmervine
Copy link
Contributor

jmervine commented Jul 6, 2014

This has been somewhat resolved by #3, but will remain open while future work is done to get this work as intended.

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