I'm trying to import tab-delimited logs into Elasticsearch and I don't want to use logstash. Would the content-type header be text/tab-separated-values? I tried application/text and it gave an error, "content-type application/text is not supported". I'm doing this in a powershell command under windows.
Documents being sent to Elasticsearch must be in JSON format, so sending files directly like that is not supported. If you do not want to use Logstash you probably need to create a script or use something else.
Thank you for that definitive answer. I wish the Elasticsearch documentation spelled this out. That's why every example I found was json. I appreciate your help.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.