Thanks, Henry!

Yes, that makes sense.  My concern with that solution is only the
likelihood that syslog would miss events due to log rotation.  In this doc
<http://www.rsyslog.com/doc/v8-stable/configuration/modules/imfile.html>,
the author explains that rsyslog will miss events if it isn't running while
the log is rotated;

"If rsyslogd is stopped during rotation, the new file is read, but any
not-yet-reported lines from the previous file can no longer be obtained."

As far as I know, that is a rare occurrence, but I was wondering if there's
something else out there, something fairly ubiquitous or simple, that
doesn't have such a vulnerability.

-Ali

On Fri, Mar 27, 2015 at 7:16 PM Henry Beatty <[email protected]> wrote:

>  Have you thought of using syslog to send to the server that is running
> heka?
>
> In you syslog.conf add:
>
> mail.info                          @10.10.10.10
> cron.*                              @10.10.10.10
>
> or whatever you want to send to heka.
>
> Of course on the server that is receiving you would have to make sure
> syslog is listening on 10.10.10.10 and open the syslog port in the firewall.
>
> I'm also pretty sure you can send syslog directly to heka on a remote
> server but, I haven't done the research to figure that out.
>
>
> On 3/27/15 7:54 PM, Ali wrote:
>
>
> Hi, all.
>
> It's looking like some of the machines I wanted to feed into Heka are too
> old to run Heka.  Most of the data I wanted from them are in /var/log.  One
> of the reasons why I wanted to use Heka is that it is supposed to do an
> exceptional job with log file handling, so that's particularly tragic.  ;-)
>  Now I'm figuring out how to get the log file data and send it to Heka.
>
> What is a comparably robust tool other than Heka for watching log files
> and sending them places?  Most likely we'll be putting up Kafka as a
> standard buffer for (probably) all of our log and other event data before
> going to Heka, so as long as the solution goes to either Heka or Kafka it
> should be fine.
>
> I was looking at the stdin/stdout
> <https://cwiki.apache.org/confluence/display/KAFKA/Clients#Clients-stdin/stdout>
> Kafka client as a simple solution for sending data from Linux machines to
> Kafka, but that doesn't address the log file watching problem.  There's
> rsyslog
> <http://www.rsyslog.com/doc/master/configuration/modules/imfile.html>,
> but it doesn't claim to be infallible when log files are rotated.  Since
> rsyslog is standard on all our RHEL boxes it seems like that's the solution
> to beat.  Any other ideas?
>
> FYI, I also looked at deploying Heka to those older RHEL boxes in a Docker
> container, but the machines that are too old to run Heka are also too old
> to run Docker.
>
> TIA,
>
> Ali
>
>
> _______________________________________________
> Heka mailing [email protected]https://mail.mozilla.org/listinfo/heka
>
>
>  _______________________________________________
> Heka mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/heka
>
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to