I'm sure it's just a configuration thing or a setting, but for the life of me I can't seem to find it...
Spent most of the day yesterday looking for a good guide on this.
Less Infodownload
OK
SearchError: unknown error
at http://:5601/bundles/commons.bundle.js:4:383522
at processQueue (h:5601/built_assets/dlls/vendors.bundle.dll.js:450:200650
at Scope.$digest (http://:5601/built_assets/dlls/vendors.bundle.dll.js:450:210412)
at Scope.$apply (http://:5601/built_assets/dlls/vendors.bundle.dll.js:450:213219)
at done (http://:5601/built_assets/dlls/vendors.bundle.dll.js:450:132717)
at completeRequest (http://:5601/built_assets/dlls/vendors.bundle.dll.js:450:136329)
at XMLHttpRequest.requestError (http:/:5601/built_assets/dlls/vendors.bundle.dll.js:450:135346)
Discover: unknown error is usually caused by something in between kibana and ES. Kibana knows how to read elasticsearch error messages, but outside of that scope it'll respond with unknown error. We should be able to open the dev tools network tab and see what the response is - sometime's it'll be empty if there's a proxy in front closing connections or so on.
Regarding the fields - apologies. That should work for new data coming in, but if not it will have to be reindexed. Logstash can use elasticsearch as the input and output. Alternatively the reindex api with a painless script should be able to help.
here's the python i'm using to move all the json files to elasticsearch
i'm assuming i could insert that bit of script into this one?
import requests, json, os
from elasticsearch import Elasticsearch
directory = '/usr/share/logstash/misp-json-files'
res = requests.get('http://IP:9200')
print (res.content)
es = Elasticsearch([{'host': 'IP', 'port': '9200'}])
i = 1
for filename in os.listdir(directory):
if filename.endswith(".json"):
f = open(filename)
docket_content = f.read()
# Send the data into es
es.index(index='resource2', ignore=400, doc_type='docket', id=i, body=json.loads(docket_content))
i + 1
tried converting event.date to string in the index management section.
didn't help...
well - the error went away, but that went away after i blew away the index and started over...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.