[
https://issues.apache.org/jira/browse/METRON-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302142#comment-15302142
]
ASF GitHub Bot commented on METRON-152:
---------------------------------------
Github user nickwallen commented on the pull request:
https://github.com/apache/incubator-metron/pull/135#issuecomment-221885902
Ran into this error when deploying on Amazon-EC2. Anyone else seeing this?
TLDR
```
TypeError: sendall() argument 1 must be string or buffer, not dict
```
```
TASK [elasticsearch : Add Elasticsearch templates for topologies]
**************
failed: [ec2-52-32-188-202.us-west-2.compute.amazonaws.com] =>
(item={u'sensor': u'bro', u'file': {'mappings': {'bro_doc': {'_timestamp':
{'enabled': True}, 'properties': {'enrichments:geo:ip_dst_addr:location_point':
{'type': 'geo_point'}, 'timestamp': {'type': 'date', 'format':
'epoch_millis'}}}}, 'template': 'bro_index*'}}) => {"failed": true, "item":
{"file": {"mappings": {"bro_doc": {"_timestamp": {"enabled": true},
"properties": {"enrichments:geo:ip_dst_addr:location_point": {"type":
"geo_point"}, "timestamp": {"format": "epoch_millis", "type": "date"}}}},
"template": "bro_index*"}, "sensor": "bro"}, "module_stderr": "",
"module_stdout": "Traceback (most recent call last):\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272005.1-272260267672829/uri\",
line 2464, in <module>\r\n main()\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272005.1-272260267672829/uri\",
line 453, in main\r\n resp, content, dest = uri(module, url, dest, user,
password, body, body_format, method, dict_headers, redirects, socket_timeout,
validate_certs)\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272005.1-272260267672829/uri\",
line 340, in uri\r\n resp, content = h.request(url, method=method,
body=body, headers=headers) \r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1609, in
request\r\n (response, content) = self._request(conn, authority, uri,
request_uri, method, body, headers, redirections, cachekey)\r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1351, in
_request\r\n (response, content) = self._conn_request(conn, request_uri,
method, body, headers)\r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1273, in
_conn_request\r\n conn.request(method, request_uri, body, headers)\r\n File
\"/usr/lib64/python2.6/httplib.py\", line 936, in request\r\n
self._send_request(method, url, body, headers)\r\n File
\"/usr/lib64/python2.6/httplib.py\", line 976, in _send_request\r\n
self.send(body)\r\n File \"/usr/lib64/python2.6/httplib.py\", line 781, in
send\r\n self.sock.sendall(str)\r\n File \"<string>\", line 1, in
sendall\r\nTypeError: sendall() argument 1 must be string or buffer, not
dict\r\n", "msg": "MODULE FAILURE", "parsed": false}
failed: [ec2-52-32-188-202.us-west-2.compute.amazonaws.com] =>
(item={u'sensor': u'yaf', u'file': {'mappings': {'yaf_doc': {'_timestamp':
{'enabled': True}, 'properties': {'uflags': {'type': 'string'}, 'pkt': {'type':
'string'}, 'app': {'type': 'string'}, 'rtt': {'type': 'string'}, 'tag':
{'type': 'string'}, 'duration': {'type': 'string'}, 'riflags': {'type':
'string'}, 'sip': {'type': 'string'}, 'proto': {'type': 'string'}, 'rtag':
{'type': 'string'}, 'oct': {'type': 'string'}, 'risn': {'type': 'string'},
'end-time': {'type': 'string'}, 'end-reason': {'type': 'string'}, 'timestamp':
{'type': 'date', 'format': 'epoch_millis'}, 'dp': {'type': 'string'},
'enrichments:geo:ip_dst_addr:location_point': {'type': 'geo_point'}, 'roct':
{'type': 'string'}, 'sp': {'type': 'string'}, 'iflags': {'type': 'string'},
'isn': {'type': 'string'}, 'ruflags': {'type': 'string'}, 'rpkt': {'type':
'string'}, 'dip': {'type': 'string'}}}}, 'template': 'yaf_index*'}}) =>
{"failed": true, "item": {"file": {"mappings": {"yaf_doc": {"_timestamp":
{"enabled": true}, "properties": {"app": {"type": "string"}, "dip": {"type":
"string"}, "dp": {"type": "string"}, "duration": {"type": "string"},
"end-reason": {"type": "string"}, "end-time": {"type": "string"},
"enrichments:geo:ip_dst_addr:location_point": {"type": "geo_point"}, "iflags":
{"type": "string"}, "isn": {"type": "string"}, "oct": {"type": "string"},
"pkt": {"type": "string"}, "proto": {"type": "string"}, "riflags": {"type":
"string"}, "risn": {"type": "string"}, "roct": {"type": "string"}, "rpkt":
{"type": "string"}, "rtag": {"type": "string"}, "rtt": {"type": "string"},
"ruflags": {"type": "string"}, "sip": {"type": "string"}, "sp": {"type":
"string"}, "tag": {"type": "string"}, "timestamp": {"format": "epoch_millis",
"type": "date"}, "uflags": {"type": "string"}}}}, "template": "yaf_index*"},
"sensor": "yaf"}, "module_stderr": "", "module_stdout": "Traceback (most recent
call last):\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272006.63-119978789749599/uri\",
line 2464, in <module>\r\n main()\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272006.63-119978789749599/uri\",
line 453, in main\r\n resp, content, dest = uri(module, url, dest, user,
password, body, body_format, method, dict_headers, redirects, socket_timeout,
validate_certs)\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272006.63-119978789749599/uri\",
line 340, in uri\r\n resp, content = h.request(url, method=method,
body=body, headers=headers) \r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1609, in
request\r\n (response, content) = self._request(conn, authority, uri,
request_uri, method, body, headers, redirections, cachekey)\r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1351, in
_request\r\n (response, content) = self._conn_request(conn, request_uri,
method, body, headers)\r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1273, in
_conn_request\r\n conn.request(method, request_uri, body, headers)\r\n File
\"/usr/lib64/python2.6/httplib.py\", line 936, in request\r\n
self._send_request(method, url, body, headers)\r\n File
\"/usr/lib64/python2.6/httplib.py\", line 976, in _send_request\r\n
self.send(body)\r\n File \"/usr/lib64/python2.6/httplib.py\", line 781, in
send\r\n self.sock.sendall(str)\r\n File \"<string>\", line 1, in
sendall\r\nTypeError: sendall() argument 1 must be string or buffer, not
dict\r\n", "msg": "MODULE FAILURE", "parsed": false}
failed: [ec2-52-32-188-202.us-west-2.compute.amazonaws.com] =>
(item={u'sensor': u'snort', u'file': {'mappings': {'snort_doc': {'_timestamp':
{'enabled': True}, 'properties': {'enrichments:geo:ip_dst_addr:location_point':
{'type': 'geo_point'}, 'timestamp': {'type': 'date', 'format':
'epoch_millis'}}}}, 'template': 'snort_index*'}}) => {"failed": true, "item":
{"file": {"mappings": {"snort_doc": {"_timestamp": {"enabled": true},
"properties": {"enrichments:geo:ip_dst_addr:location_point": {"type":
"geo_point"}, "timestamp": {"format": "epoch_millis", "type": "date"}}}},
"template": "snort_index*"}, "sensor": "snort"}, "module_stderr": "",
"module_stdout": "Traceback (most recent call last):\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272007.91-28974849171520/uri\",
line 2464, in <module>\r\n main()\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272007.91-28974849171520/uri\",
line 453, in main\r\n resp, content, dest = uri(module, url, dest, user,
password, body, body_format, method, dict_headers, redirects, socket_timeout,
validate_certs)\r\n File
\"/home/centos/.ansible/tmp/ansible-tmp-1464272007.91-28974849171520/uri\",
line 340, in uri\r\n resp, content = h.request(url, method=method,
body=body, headers=headers) \r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1609, in
request\r\n (response, content) = self._request(conn, authority, uri,
request_uri, method, body, headers, redirections, cachekey)\r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1351, in
_request\r\n (response, content) = self._conn_request(conn, request_uri,
method, body, headers)\r\n File
\"/usr/lib/python2.6/site-packages/httplib2/__init__.py\", line 1273, in
_conn_request\r\n conn.request(method, request_uri, body, headers)\r\n File
\"/usr/lib64/python2.6/httplib.py\", line 936, in request\r\n
self._send_request(method, url, body, headers)\r\n File
\"/usr/lib64/python2.6/httplib.py\", line 976, in _send_request\r\n
self.send(body)\r\n File \"/usr/lib64/python2.6/httplib.py\", line 781, in
send\r\n self.sock.sendall(str)\r\n File \"<string>\", line 1, in
sendall\r\nTypeError: sendall() argument 1 must be string or buffer, not
dict\r\n", "msg": "MODULE FAILURE", "parsed": false}
```
> Add support for ES 2.3.x and Kibana 4.5.0
> -----------------------------------------
>
> Key: METRON-152
> URL: https://issues.apache.org/jira/browse/METRON-152
> Project: Metron
> Issue Type: Improvement
> Reporter: David M. Lyle
> Assignee: David M. Lyle
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)