Skip to content

jami-i/embulk-parser-apache-custom-log

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 34 commits ahead, 15 commits behind hiroyuki-sato:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Apache CustomLog parser plugin for Embulk

circlci-badge

Embulk parser plugin for apache CustomLog.

Parser configuration based Apache HTTPD 2.2 CustomLogFormat

Overview

  • Plugin type: parser
  • Guess supported: no

Configuration

Example

in:
  type: any file input plugin type
  parser:
    type: apache-custom-log
    format: "%v %{X-Forwarded-For}i %l %u %t \"%m %U%q %H\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O %D"
$ embulk gem install embulk-parser-apache-custom-log

Build

$ ./gradlew gem

Field / Column mappings

see: LogFormats.java

flag type column-name parameter
a String remote-ip
A String local-ip
b Long response-bytes
B Long response-bytes
C String request-cookie cookie name ex: %{SESSIONID}C => request-cookie-SESSIONID
D Long request-process-time-us
e String env environment variable name ex: %{UNIQUE_ID}C => env-UNIQUE_ID
f String file-name
h String remote-host
H String request-protocol
i String request-header request header name ex: %{User-Agent}i => request-header-User-Agent
l String remote-log-name
m String request-method
n String module-note
o String response-header response header name ex: %{Location}o => response-header-Location
p Long request-port
P Long request-process
q String request-query
r String request-line
s Long response-status
t Timestamp request-time timestamp format defined in strptime.
if format is not present, DateTimeFormatter class will be used.
T Long request-process-time-s
u String request-user
U String request-path
v String request-server-name
V String canonical-server-name
X String connection-status
I Long request-total-bytes
O Long response-total-bytes
% String %

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 95.6%
  • Ruby 4.4%