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
- Host: GitHub
- URL: https://github.com/jonikanerva/logway
- Owner: jonikanerva
- Created: 2015-02-16T13:39:35.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T01:21:25.000Z (over 3 years ago)
- Last Synced: 2025-06-17T23:37:50.244Z (about 1 year ago)
- Topics: ruby, sinatra
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
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
```