Skip to content

Instantly share code, notes, and snippets.

@boneskull
Last active June 13, 2017 02:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boneskull/0445942c1d42b14900adba0b8783be0b to your computer and use it in GitHub Desktop.
Save boneskull/0445942c1d42b14900adba0b8783be0b to your computer and use it in GitHub Desktop.
HOWTO: Install logentries agent & logentries-daemon on armhf (Debian Jessie)

Why?

Because Logentries doesn't publish .debs for armhf.

  1. Install Python 2.7
  2. sudo apt-get install python-simplejson -y
  3. Grab latest release tarball from GitHub
  4. Extract & enter new dir; sudo python setup.py install
  5. Grab logentries daemon tarball, hack around logentries dep:
$ curl -OL http://rep.logentries.com/pool/main/l/logentries-daemon/logentries-daemon_0.8.12_all.deb && \
ar x logentries-daemon_0.8.12_all.deb && \
tar xvf control.tar.gz && \
sed -i 's/python-simplejson.*/python-simplejson/' control && \
tar c postinst prerm postrm md5sums control conffiles | gzip -c > control.tar.gz && \
ar rcs logentries-daemon-fixed.deb debian-binary control.tar.gz data.tar.gz && \
sudo dpkg -i logentries-daemon-fixed.deb
  1. Run sudo le register, etc. See logentries' Linux Agent docs

Instead of step 5, an alternative (untested) solution is probably to manually extract the init script from the logentries-daemon .deb and move it in place, doing whatever needs to be done w/r/t updating systemd, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment