본문 바로가기

전체 글

(159)
centos ls -al date format 보기편하게 alias 로 주면 됨 ls -lt --time-style="+%Y-%m-%d" ls -l --time-style="+%Y-%m-%d" https://www.unix.com/unix-for-dummies-questions-and-answers/188029-ls-date-format.html ls Date format Hi on one of the linux machine ls -l is showing the date in "2012-05-23" format while some other server is display as "May 12". I have browsed the man pages but could not see any o | The UNIX and Linux Forums www.unix.co..
centos job을 background로 실행시키고 일단 나몰라라 퇴근하고 싶을때 & nohup 만 기억하세요 ex) nohup bin/logstash -f ./current-logstash-backup.conf --path.data ./data2 > /root/nohup.log 2>&1 & Run a Linux Command in the Background To run a command in the background, add the ampersand symbol (&) at the end of the command: command & The shell job ID (surrounded with brackets) and process ID will be printed on the terminal: [1] 25177 You can have multiple processes runnin..
logstash conf :sql_last_value jdbc { jdbc_connection_string => "상동" jdbc_user => "username" jdbc_password => "atlaspw" jdbc_driver_library => "" jdbc_validate_connection => true schedule => "*/10 * * * *" statement => "SELECT region_id, region_type, country_code, country_code_3, source_from, st_asgeojson(center_geo_point)::text as center_geo_point_text, center_longitude, center_latitude, jsonn::text from expedia_region_union..
개발환경세팅 / intellij 설정 windows 똑같은 maven build를 윈도우즈에서 할때 고생많이했음. 1 maven 버전. 맞추기. 2 호스트 파일 변경.. 3 lombok 설치. 4 도커 (https://social.technet.microsoft.com/Forums/en-US/ee5b1d6b-09e2-49f3-a52c-820aafc316f9/hyperv-doesnt-work-after-upgrade-to-windows-10-1809?forum=win10itprovirt) 1, Open "Window Security" 2, Open "App & Browser control" 3, Click "Exploit protection settings" at the bottom 4, Switch to "Program settings" tab 5, Lo..
cannot resolve symbol 에러 intellij windows jar.lastUpdated에 unable to find valid certification path to requested target 이렇게 적혀있다. 왜 못가져왔는지. 귀찮으니까 그냥 하나하나 jar 파일을 직접 넣어주고 인텔리제이한테 여기있다고 알려주는과정을 거쳤다. 한번에 되면 제일좋지만 모르겠으면 하나하나 반복작업하다보면 아 그래서 그랬구나. 이런 순간이 수학에도 있고 컴퓨터에도 있는듯. 그냥 여기경로에 직접가서 파일 다 지워주고 내가 직접다운로드 받은 파일을 넣어줬다. 좋은 방법은 아니라고 생각하는데.. 왜냐면 이걸 편하게 하려고 인텔리제이를 쓰는거니까;; 하지만 일단 급한대로. 본인이 할수있는 선에서 방법을 찾았기때문에 기록해둔다. 이렇게도.
logstash 변경분만 가져오기 으 짜증나. 튜토리얼 에는 이런것들이 잘 없음. 이런게 노하우인가봄. 한번 인덱스에 담아두고 나면. 그 다음에는 변경된 것만 로그스태시가 가져와야 빠르지... 근데 그렇게 하려면 :sql_last_value 나 last_run_path? 뭐쩌구 저쩌구를 가져오래 근데 그거는 또 tracking_column 해야한대 근데 tracking_column_type은!!!!!!!!!!!!! numeric이나 timestamp만 된대 나는 내가 저장한건 아니지만 (ㅡㅡ) string으로 YYYYMMDD이렇게 저장된 날짜를 가지고 있는데. 이미 여러군데 저장해놔서... 그냥 column하나를 timestamp타입으로 복사해서 ... tracking column으로 쓰려고... 아니 별것도 아닌데 왜 Date를 tim..
clone conf 적용 파일 input {} filter {} output {} 이런 구조. 원래는 prune 플러그인을 사용하였는데. 왜인지 설치가 안됐다. 그렇다고 로그스태시 재설치는 싫었다. 그래서 prune을 제거하고 mutate(core package에 있는 놈)으로 정리했다. 최선의 resource 사용하는 구성은 아님. 오히려 낭비하고 있는데 이런 구조를 사용하는 이유는 그냥. 이 파일 하나만 구동시키면 되기 때문이다. 음... 나름 관리의 편의? 각설하고. intput { jdbc { jdbc_connection_string => "jdbc:postgresql://아이피:디비_포트넘버/atlasdb?useTimezone=true&useLegacyDatetimeCode=false&serverTimezone=UTC&use..
clone and postgis 상황 1 postgres table 2개를 input 2 그 중 1개를 clone 하여 3 3개의 인덱스에 각각 output input { jdbc { jdbc_connection_string => "jdbc:postgresql://localhost:5432/atlasdb?useTimezone=true&useLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf8" jdbc_user => "atlas" jdbc_password => "atlas" jdbc_validate_connection => true jdbc_driver_library => "/lib/postgres-42-test.jar..