question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for last -F

See original GitHub issue

Support planned for v1.14.1. New last parser is here:

https://github.com/kellyjonbrazil/jc/blob/dev/jc/parsers/last.py

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
zerolagtimecommented, Jan 6, 2021

support both crash and down

197c197
<                 if len(linedata) > 9 and linedata[9] != 'crash':
---
>                 if len(linedata) > 9 and linedata[9] != 'crash' and linedata[9] != 'down':
200c200
<                 if len(linedata) > 9 and linedata[9] == 'crash':
---
>                 if len(linedata) > 9 and ( linedata[9] == 'crash' or linedata[9] == 'down'):

Example line that broke the previous version with last -F:

root     pts/0        developer-pc.exa Mon Mar 23 16:44:55 2020 - down                      (00:00)

Other than that fix, it looks beautiful!

0reactions
zerolagtimecommented, Jan 7, 2021

Looks like exactly 28,800 seconds (8 hour difference)

My best guess is that one of them is either overriding the TZ (timezone) variable or has none set. I have both types of boxes and they both report dates in last with my local timezone offset.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Link to new Last.fm support forum : r/lastfm - Reddit
The link to the Last.fm support forum in this subreddit still shows the outdated Get Satisfaction forum. The new support forum is hosted...
Read more >
How do I add new events? - Last.fm | Support
Any registered member of the Last.fm community can add a new event to an artist page. To do so, open any artist's event...
Read more >
Last.fm | Play music, find songs, and discover artists
The world's largest online music service. Listen online, find out more about your favourite artists, and get music recommendations, only at Last.fm.
Read more >
Scrobbling on Last.fm - Yandex.Music mobile. Help
Under Social networks, tap → Unlink account in front of your Last.fm login. Contact Support.
Read more >
Last.FM scrobbling on Sonos - Sonos Support
Scrobbling is a system that tracks your listening habits and uploads them to your Last.fm account. Every time you play a track it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found