logsearch / logsearch-shipper-boshrelease

Forward the log messages and metrics that your BOSH jobs generate
Apache License 2.0
1 stars 5 forks source link

Logs not shipping to papertrail #13

Open drnic opened 9 years ago

drnic commented 9 years ago

I'm trying to use logsearch-shipper to ship my logs to https://papertrailapp.com

I have the following configuration in my manifest.

properties:
  logsearch:
    logs:
      enabled: true
      server: logs.papertrailapp.com:54321
    metrics:
      enabled: false

On the job vms the processes are running:

 9119 ?        S<     0:00 /bin/bash /var/vcap/jobs/logsearch-shipper/bin/logs.control start
 9128 ?        S<l    0:00 /var/vcap/packages/logsearch-nxlog/bin/nxlog -f -c nxlog.conf
 9154 ?        S<l    0:00 /var/vcap/bosh/bin/monit -c /var/vcap/data/logsearch-shipper/metrics/monit.conf
 9170 ?        S<sl   0:00 /var/vcap/packages/logsearch-collectd/sbin/collectd -C /var/vcap/jobs/logsearch-shipper/etc/metrics-collectd.conf
 9182 ?        S<     0:00 /bin/bash /var/vcap/jobs/logsearch-shipper/bin/metrics-collectd.graphite-mock
 9183 ?        S<     0:00 /bin/nc -l 127.0.0.1 2003
 9184 ?        S<     0:00 grep -v  nan
 9185 ?        S<     0:00 sed -E -e s/^collectd\.localhost./host./ -e s/([^\w])\-/\1_/g
 9195 ?        S<l    0:00 /var/vcap/bosh/bin/ruby /var/vcap/jobs/logsearch-shipper/logsearch/metric-collector/monit/collector

In the generated log file I can see the output info:

<Output out>
  Host logs.papertrailapp.com
  Port 54321
  Module om_tcp
  Exec to_syslog_ietf();
  OutputType LineBased
</Output>

Any suggestions for getting the logs flowing?

dpb587 commented 9 years ago

While logsearch-shipper is focused on logsearch, the untested theory has been it should be compatible with similar hosted services. The pastes you provided look sane. Did /var/vcap/sys/log/logsearch-shipper/logs.nxlog.log have any further details, such as connectivity issues?

On Friday, November 20, 2015, Dr Nic Williams notifications@github.com wrote:

I'm trying to use logsearch-shipper to ship my logs to https://papertrailapp.com

I have the following configuration in my manifest.

properties: logsearch: logs: enabled: true server: logs.papertrailapp.com:54321 metrics: enabled: false

On the job vms the processes are running:

9119 ? S< 0:00 /bin/bash /var/vcap/jobs/logsearch-shipper/bin/logs.control start 9128 ? S<l 0:00 /var/vcap/packages/logsearch-nxlog/bin/nxlog -f -c nxlog.conf 9154 ? S<l 0:00 /var/vcap/bosh/bin/monit -c /var/vcap/data/logsearch-shipper/metrics/monit.conf 9170 ? S<sl 0:00 /var/vcap/packages/logsearch-collectd/sbin/collectd -C /var/vcap/jobs/logsearch-shipper/etc/metrics-collectd.conf 9182 ? S< 0:00 /bin/bash /var/vcap/jobs/logsearch-shipper/bin/metrics-collectd.graphite-mock 9183 ? S< 0:00 /bin/nc -l 127.0.0.1 2003 9184 ? S< 0:00 grep -v nan 9185 ? S< 0:00 sed -E -e s/^collectd.localhost./host./ -e s/([^\w])-/\1_/g 9195 ? S<l 0:00 /var/vcap/bosh/bin/ruby /var/vcap/jobs/logsearch-shipper/logsearch/metric-collector/monit/collector

In the generated log file I can see the output info:

Host logs.papertrailapp.com Port 54321 Module om_tcp Exec to_syslog_ietf(); OutputType LineBased

Any suggestions for getting the logs flowing?

— Reply to this email directly or view it on GitHub https://github.com/logsearch/logsearch-shipper-boshrelease/issues/13.

Danny Berger http://dpb587.me