freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

elk日志分析系統(tǒng)方案(完整版)

2025-06-08 18:47上一頁面

下一頁面
  

【正文】 輸出線面信息 message = world, version = 1, timestamp = 20170919T19:32:, host = }(3) 、把輸入內容輸出到elasticsearch中 logstash e 39。驗證:輸出信息被記錄在文本中,可實時查詢。點擊“Discover”,注意右上角是查詢的時間范圍。(3)、Dashboard窗口切換到Dashboard頁面,單擊新建按鈕,選擇剛剛保存的search_all_logs_visual圖形,面板上將展示該圖。 yum y install gcc gccc++ make gmake cmake zlib tcl 安裝依賴性,安裝redis cd /usr/local/src 進入軟件包目錄(規(guī)范化) wget \\下載軟件包 tar xzf 解壓并進入redis目錄 cd 解壓并進入redis目錄 ./runtest 運行測試 make MALLOC=libc 預編譯 編譯安裝 make test 編譯測試 cd src 進入src目錄安裝 make PREFIX=/usr/local/redis install 編譯安裝 cd utils/ .src/ //腳本執(zhí)行后,所有選項都以默認參數(shù)為準即可 Please select the redis port for this instance: [6379] 此處回車,可設置Selecting default: 6379Please select the redis config file name [/etc/redis/] 此處回車,可設置Selected default /etc/redis/Please select the redis log file name [/var/log/] 此處回車,可設置Selected default /var/log/Please select the data directory for this instance [/var/lib/redis/6379] 此處回車,可設置Selected default /var/lib/redis/6379Please select the redis executable path [] 默認為[],設置為/usr/local/redis/bin/redisserverSelected config:Port : 6379Config file : /etc/redis/Log file : /var/log/Data dir : /var/lib/redis/6379Executable : /usr/local/bin/redisserverCli Executable : /usr/local/bin/rediscliIs this ok? Then press ENTER to go on or CtrlC to abort. 此處回車Copied /tmp/ = /etc/Installing service...Successfully added to chkconfig!Successfully added to runlevels 345! 運行等級為345Starting Redis server...Installation successful! 配置redis vim /usr/local/redis/etc/bind port 6379tcpbacklog 511 timeout 60s tcpkeepalive 300 daemonize yes supervised no pidfile /var/run/ loglevel noticelogfile /var/log/databases 16save 900 1save 300 10save 60 10000stopwritesonbgsaveerror yesrdbpression yesrdbchecksum yesdbfilename dir /var/lib/redis/6379repldisklesssync norepldisklesssyncdelay 5repltimeout 60repldisabletcpnodelay norequirepass mimamaxclients 10000maxmemory 256mmaxmemorypolicy volatilettlmaxmemorysamples 5appendonly noappendfilename appendfsync alwaysnoappendfsynconrewrite noautoaofrewritepercentage 100autoaofrewriteminsize 64mbaofloadtruncated yesluatimelimit 5000slowloglogslowerthan 10000slowlogmaxlen 128latencymonitorthreshold 0 notifykeyspaceevents hashmaxziplistentries 128hashmaxziplistvalue 1024 listmaxziplistsize 2listpressdepth 0setmaxintsetentries 512zsetmaxziplistentries 128zsetmaxziplistvalue 64hllsparsemaxbytes 3000activerehashing yesclientoutputbufferlimit normal 0 0 0clientoutputbufferlimit pubsub 32mb 8mb 60hz 10aofrewriteincrementalfsync yes 設置守護進程 cp /usr/local/src/ chmod 755 /etc/ vim /etc/init. d/redis!/bin/sh Simple Redis script conceived to work on Linux systems as it does use of the /proc filesystem. chkconfig: 58 74 description: Redis_6379 is a persistent keyvalue databaseREDISPORT=6379EXEC=/usr/local/redis/bin/redisserverCLIEXEC=/usr/local/redis/bin/rediscliPIDFILE=/var/run/redis_${REDISPORT}.pidCONF=/etc/redis/${REDISPORT}.confcase $1 in start) if [ f $PIDFILE ] then echo $PIDFILE exists, process is already running or crashed else echo Starting Redis server... $EXEC $CONF fi echo Redis start 。 輸出信息到Elasticsearch vim /etc/logstash/ input { redis { host = password = mima redis認證密碼 port = 6379 redis端口 db = 6 此處的db庫名應與此前寫入redis數(shù)據(jù)庫的庫名一致。(1) 、首先需要安裝Nginx和logstash agent(2) 、nginx配置Nginx配置文件路徑:/etc/nginx/ vim /etc/nginx/ 將nginx的日志格式配置為json格式 ........................log_format json 39。 請求 39。 39。 index 。 39。 請求狀態(tài) 39。 時間 39。 }}output { elasticsearch { 將redis庫中的數(shù)據(jù)輸出到es中 hosts = [:9200] es服務IP+端口 index = 39。 status) PID=$(cat $PIDFILE) if [ ! x /proc/${PID} ] then echo 39。當然,我們可以設置更新頻率,讓圖表自動更新。選擇時間段后,就可看到ES中的數(shù)據(jù)信息。 elasticsearch { hosts = [:19200] index = eserror%{+} } }}注:如果你的日志中有type字段 那你就不能在conf文件中使用type驗證:案例(3)中是將每個報錯收集成一行內容,并不是按照一個報錯、一個時間模塊方式收集的。Settings: Default filter workers: 1Logstash startup pleted 123456 輸入內容novahelloworldSIGINT received. Shutting down the pipeline. {:level=:warn}Logstash shutdown pleted注:使用rubydebug和寫到elasticsearch中的區(qū)別:其實就在于后面標準輸出的區(qū)別,前者使用codec;后者使用elasticsearch。(2) 、方法二:源碼安裝 wget unzip cd /usr/share/elasticsearch/plugins/ mkdir kopf cd kopf cp r /usr/local/src/elasticsearchkopfmaster/* ./ chown R elasticsearch:elasticsearch /usr/share/elasticsearch/plugins /etc/Stopping elasticsearch: [FAILED]Starting elasticsearch: [ OK ]測試驗證: 安裝Logstash安裝包: 下載源碼安裝包 wget 安裝 tar xvf mv 配置環(huán)境 vim /etc/profile export PATH=$PATH:/usr/local/logstash/bin source /etc/profile 重啟elasticsearch /etc/ 數(shù)據(jù)測試logstash常用參數(shù):e :指定logstash的配置信息,可以用于快速測試。 實例測試(1) 、插入數(shù)據(jù)實例測試打開”復合查詢“,在POST選項下,任意輸入如/indexdemo/test,然后在下面輸入數(shù)據(jù),查看返回結果。刪除插件: /usr/share/elasticsearch/bin/plu
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1