전체 글(1011)
-
Fluentd nginx error 로그의 패턴이 일정하지 않을 때 처리
@type tail path /var/log/nginx/error.log pos_file /var/log/fluentd/nginx-error.log.pos tag nginx.error read_from_head true @type regexp expression /^(?\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}) \[(?[^\]]+)\] (?\d+#\d+): (?.*)$/ time_key time time_format %Y/%m/%d %H:%M:%S # Step 2: If Level is "error", extract structured fields @type record_transformer enable_ruby true reque..
2025.02.04 -
Fluentd 400 - Rejected by Elasticsearch
이 에러 때문에 개고생함[warn]: #0 dump an error event: error_class=Fluent::Plugin::ElasticsearchErrorHandler::ElasticsearchError error="400 - Rejected by Elasticsearch" location=nil tag="{tag}" time=2025-02-03 19:10:47.176780908 +0900 record={"request_id"=>"26567", .., "server_name"=>"test"}원인: Elasticsearch의 Index Templates에 에러와 관련된 Index 이름으로 Index Tempales이 등록되어 있었는데, 그것과 데이터 형식이 맞지 않아서 발생한 문제임결국 Elsti..
2025.02.04 -
Sencha xtype: datefield에 값 설정하기
Sencha에서 날짜 처리하는 것이 까다로움Ext.Date.parse('20250203', 'Ymd')을 통해서 변환해서 값을 넣어야 함Case1const dateField = Ext.create('Ext.form.field.Date', { fieldLabel: 'Date', format: 'Ymd', // Format for display (optional) renderTo: Ext.getBody()});// Set value after renderingdateField.setValue(Ext.Date.parse('20250203', 'Ymd'));Case2{ xtype: 'datefield', fieldLabel: 'Date', format: 'Ymd', val..
2025.02.04 -
Vscode 파일 비교
Open both files in VS Code.In the Explorer panel (left side), right-click the first file and select "Select for Compare".Then, right-click the second file and select "Compare with Selected".A side-by-side comparison will open showing the differences.
2025.02.04 -
Nginx Ubuntu nginx: [emerg] unknown directive "stream" in /etc/nginx/nginx.conf:307
증상stream 모듈이 보이지 않지만, postreSQL을 proxy할 때는 잘 작동함특정 시점에 error 로그에 해당 내용이 남음인증서 갱신할때도 stream관련 문구를 해석하지 못하는 문제 있음확인nginx -V조치: 모듈 재설치모듈을 재설치해도 conf 파일은 덮어치지 않음./configure \기존 적용 내용 ..--with-stream# 하는 김에 dynamic도 추가함--with-stream=dynamicsudo make install확인 및 재시작sudo nginx -tsudo systemctl restart nginx# 확인nginx -V
2025.02.03 -
Fluentd ubuntu에 서비스 등록하기
시스템 서비스 파일 생성sudo vi /etc/systemd/system/fluentd.servicefluentd.service[Unit]Description=Fluentd ServiceAfter=network.target[Service]# Run Fluentd as a non-root user if possible (create one if needed)User={user}Group={group}# Full path to the Fluentd executable and configuration fileExecStart=/usr/local/bin/fluentd -c {fleuntd.conf 파일}# Optional: restart if Fluentd crashesRestart=alwaysRestartSe..
2025.02.02