Graylog2 / Graylog2/graylog2-server

lookup tables file lookup adding characters/no clean parse

Open
#3,999 0 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Expected Behavior
Characters at the end of lines should be ignored.

## Current Behavior
Spaces or Tabs are added to the values.

![screenshot 2017-07-14 15 49 48](https://user-images.githubusercontent.com/404238/28215185-5c9cdc12-68ad-11e7-9a16-6ec9aa5ab882.png)

## Possible Solution
The Data Parser should parse/read only the data inside the quote characters.

## Steps to Reproduce (for bugs)
```
root@gm-01-u:~# cat -A /etc/graylog/host-table.csv
"ip","hostname"$
"192.168.1.50","gm-01-c.lan" $
"192.168.1.51","gm-01-d.lan"$
"192.168.1.52","gm-01-u.lan"$
```

## Context
Most CSV will be created by exporting Excel files, but some might be created manual and additional spaces might be added at the end of a line or after a separator. Spotting this becomes hard if the file is bigger.

## Your Environment

* Graylog Version: 2.3.0 rc.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.