Content-type for importing tab delimited file into Elasticsearch

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.

1 Like

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.