No commit activity in last 3 years
No release in over 3 years
Parses Ltsv files read by other file input plugins.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.0
>= 10.0
 Project Readme

Ltsv parser plugin for Embulk

Overview

  • Plugin type: parser
  • Guess supported: yes

Configuration

  • null_value_pattern: null value pattern. (string, default: null)
  • null_empty_string: empty to null. (bool, default: false)

Example

in:
  type: file
  path_prefix: /tmp/access_log-20150616.ltsv.gz
  decoders:
  - {type: gzip}
  parser:
    type: ltsv
    charset: UTF-8
    newline: CRLF
    null_value_pattern: ^(-|null|NULL)$
    schema:
      - {name: host, type: string}
      - {name: ip_address, type: string}
      - {name: server, type: string}
      - {name: remote_user, type: string}
      - {name: log_time, type: timestamp, time_format: '%d/%b/%Y:%H:%M:%S %z'}
      - {name: method, type: string}
      - {name: path, type: string}
      - {name: protocol, type: string}
      - {name: status, type: long}
      - {name: size, type: string}
      - {name: referer, type: string}
      - {name: user_agent, type: string}
      - {name: response_time, type: long}
exec: {}
out: {type: stdout}

(If guess supported) you don't have to write parser: section in the configuration file. After writing in: section, you can let embulk guess parser: section using this command:

$ embulk gem install embulk-parser-ltsv
$ embulk guess -g ltsv config.yml -o guessed.yml

Build

$ rake