Results 1 to 4 of 4

Thread: server logs -> e-mail?

  1. #1

    Question server logs -> e-mail?

    I'm just trying to setup a simple webserver, it's not configured for e-mail. How do I send/receive logs or other diagnostic files? Use scp? I can't think of a good way to upload various logs from the server to a webpage to post here.

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: server logs -> e-mail?

    On 2014-10-28 05:06, THUFIRH wrote:
    >
    > I'm just trying to setup a simple webserver, it's not configured for
    > e-mail. How do I send/receive logs or other diagnostic files? Use scp?


    That's one way.

    Or configure it for email. That's what I do. I don't use a real internet
    email address, but an internal one that only my own dns recognizes. But
    I could use an internet email if I wished to.

    Sending email is just far easier to trigger than a script doing scp
    passwordless (with two way keys). If the target is off, email simply
    delays and is sent on first chance.

    > I can't think of a good way to upload various logs from the server to a
    > webpage to post here.


    Copy to usb stick? ssh to it, use 'mc' to transfer to your work machine,
    then from that one to any other?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  3. #3
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: server logs -> e-mail?

    On 10/28/2014 7:38 AM, Carlos E. R. wrote:
    > On 2014-10-28 05:06, THUFIRH wrote:
    >>
    >> I'm just trying to setup a simple webserver, it's not configured for
    >> e-mail. How do I send/receive logs or other diagnostic files? Use scp?

    >
    > That's one way.
    >
    > Or configure it for email. That's what I do. I don't use a real internet
    > email address, but an internal one that only my own dns recognizes. But
    > I could use an internet email if I wished to.
    >
    > Sending email is just far easier to trigger than a script doing scp
    > passwordless (with two way keys). If the target is off, email simply
    > delays and is sent on first chance.
    >
    >> I can't think of a good way to upload various logs from the server to a
    >> webpage to post here.

    >
    > Copy to usb stick? ssh to it, use 'mc' to transfer to your work machine,
    > then from that one to any other?
    >

    You might want to take a look at Webmin. Webmin can not only be used for remote administration but also has facilities
    to read the logs. http://www.webmin.com/

    --
    P.V.
    "We're all in this together, I'm pulling for you" Red Green

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,924
    Blog Entries
    2

    Default Re: server logs -> e-mail?

    Depends on whether you <only> want to send or if you also want to process.

    So, if I want to "push" a file to another machine, it can be as simple as using netcat (nc).
    If I want to pre-process the file (ie tagging and filtering), then I use Logstash.

    There are also a variety of utilities that extract system logfiles into various systems.

    So, just in general I'd advise you to work "backwards" by first determining what you want to use to parse and analyze your logfiles, and <then> look for what people are using to import/acquire the files.

    And, just in general I prefer not to send actual logfiles through my mail system, it adds unnecessary bulk which adds up over time. I might configure email notifications, but send logfiles through some other transport and repository.

    TSU

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •