Skip to content

Instantly share code, notes, and snippets.

@DRN88
Last active October 27, 2016 14:47
Show Gist options
  • Save DRN88/07082f6e795e05e7fa56c1c7ff77252b to your computer and use it in GitHub Desktop.
Save DRN88/07082f6e795e05e7fa56c1c7ff77252b to your computer and use it in GitHub Desktop.
csv2es xferlog mapping file for elasticsearch
{
"dynamic": "true",
"properties": {
"current-time": {"type": "date", "format": "EEE MMM D HH:mm:ss yyyy"},
"transfer-time": {"type": "integer", "index" : "not_analyzed"},
"remote-host": {"type": "ip", "index" : "not_analyzed"},
"file-size": {"type": "integer", "index" : "not_analyzed"},
"filename": {"type": "string", "index" : "not_analyzed"},
"transfer-type": {"type": "string", "index" : "not_analyzed"},
"special-action-flag": {"type": "string", "index" : "not_analyzed"},
"direction": {"type": "string", "index" : "not_analyzed"},
"access-mode": {"type": "string", "index" : "not_analyzed"},
"username": {"type": "string", "index" : "not_analyzed"},
"service-name": {"type": "string", "index" : "not_analyzed"},
"authentication-method": {"type": "string", "index" : "not_analyzed"},
"authenticated-user-id": {"type": "string", "index" : "not_analyzed"},
"completion-status": {"type": "string", "index" : "not_analyzed"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment