hanker

Logstash - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \\t\\r\\n], \"#\", \"input\", \"filter\", \"output\" at line 1, column 1 (byte 1)", 본문

DATABASE/ElasticSearch

Logstash - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \\t\\r\\n], \"#\", \"input\", \"filter\", \"output\" at line 1, column 1 (byte 1)",

hanker 2025. 3. 24. 01:28
반응형

Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \\t\\r\\n], \"#\", \"input\", \"filter\", \"output\" at line 1, column 1 (byte 1)",

 

Logstash를 이용하여 MariaDB to ElasticSearch를 동기화하던 중 오류가 발생했다.

 


오류 로그를 읽어보면 첫 줄부터 오류가 발생했다고 한다.

첫 시작은 input, filter, output 중 하나여야 하는데, 아니여서 오류가 발생했다.

원인 설명
첫 줄에 input 블록 없음 input { ... }로 시작하지 않음
공백/빈 줄/인코딩 문제 UTF-8 BOM 포함, 특수문자, 줄바꿈 오류
input 위에 주석도 없음 Logstash는 주석(#) 외 어떤 것도 허용하지 않음
파일 인코딩 문제 Windows에서 저장한 파일이 UTF-8 BOM 포함되어 있음
파일이 비어 있음 오타 없이 내용이 없음 (또는 잘못된 경로)

 

나는 input으로 시작해야하는데, nput으로 오타가 나서 나오는 문제였다.

 

 

반응형