Skip to content

Instantly share code, notes, and snippets.

View megastef's full-sized avatar
🏠
Working from home

Megastef megastef

🏠
Working from home
  • Twitter: @seti321
  • Germany
View GitHub Profile
@megastef
megastef / patterns.yml
Last active October 18, 2016 11:28 — forked from Leen15/patterns.yml
Patterns for sematext agent
patterns:
- sourceName: !!js/regexp /docker-nginx-loadbalancer/
match:
- type: nginxbalancer
regex: !!js/regexp /^(\[(.+?)\]\s-\sclient_ip=(.+?)\slb=(.+?)\scontainer=(.+?)\sresponse_status=(.+?)\spath="(.+?)"\sresponse=(.+?)\scontainer_status=(.+?)\stotal_time=(.+?)\sbytes=(.+?)\suser_agent="(.+?)"\shost=(.+?)\sbody=(.+)$)/i
fields:
- message
- ts
- client_ip:string
- lb:string