An open API service indexing awesome lists of open source software.

https://github.com/jonikanerva/logway

The other end for Heroku HTTPS log drains
https://github.com/jonikanerva/logway

ruby sinatra

Last synced: 9 months ago
JSON representation

The other end for Heroku HTTPS log drains

Awesome Lists containing this project

README

          

## Setup

First install Apache + Passenger.

Clone repo:
```
git clone git@github.com:jonikanerva/logway.git /home/your_site/logway
```

Fix permissions:
```bash
chmod 0771 /home/your_site /home/your_site/logway /home/your_site/logway/logs
chown your_site:logstash /home/your_site/logway/log
```

Add Apache config:
```apache
# /etc/httpd/conf.d/logway.conf

SSLEngine on

ServerName logway.your_site.com
DocumentRoot /home/your_site/logway/public
CustomLog /var/log/httpd/logway_access_log combined
ErrorLog /var/log/httpd/logway_error_log


AuthName Logway
AuthType Basic
AuthUserFile /home/your_site/htpasswd_users
Require user logdrainuser
Order allow,deny
Satisfy any
Options -MultiViews

```

Add logrotate config:
```bash
# /etc/logrotate.d/logway

/home/your_site/logway/log/logway-*.log {
daily
dateext
rotate 30
copytruncate
compress
missingok
}
```

## Run locally

```
rackup -p 4567
```