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

正文內(nèi)容

elk日志分析系統(tǒng)方案-資料下載頁(yè)

2025-05-03 18:47本頁(yè)面
  

【正文】 Will shutdown filter/output workers. {:level=:info}Pipeline main has been shutdownstopping pipeline {:id=main}Closing inputs {:level=:info}Closed inputs {:level=:info}驗(yàn)證: rediscli h p 6379 登陸redis數(shù)據(jù)庫(kù):6379 auth mima 密碼驗(yàn)證,如果此處沒(méi)有進(jìn)行密碼驗(yàn)證,則會(huì)報(bào)出錯(cuò)誤,錯(cuò)誤信息如下:“NOAUTH Authentication required.”O(jiān)K:6379 info 查看redis信息查看 Serverredis_version: redis版本信息redis_git_sha1:00000000redis_git_dirty:0redis_build_id:2fd0f0229ac00f27redis_mode:standaloneos:Linux x86_64arch_bits:64multiplexing_api:epollgcc_version: gcc版本信息process_id:24757 當(dāng)前 Redis 服務(wù)器進(jìn)程idrun_id:3563e3ab4f6739fde5a523a668bca974b202706etcp_port:6379uptime_in_seconds:357768 運(yùn)行時(shí)長(zhǎng)(秒)uptime_in_days:4 運(yùn)行時(shí)長(zhǎng)(天)hz:10lru_clock:13265422executable:/usr/local/redis/bin/redisserverconfig_file:/etc/redis/ Clients connected_clients:1 客戶(hù)端連接數(shù)client_longest_output_list:0client_biggest_input_buf:0blocked_clients:0 Memoryused_memory:1001568 Redis 分配的內(nèi)存總量used_memory_human:used_memory_rss:3497984 Redis 分配的內(nèi)存總量(包括內(nèi)存碎片)used_memory_rss_human:used_memory_peak:2425176used_memory_peak_human: Redis所用內(nèi)存的高峰值total_system_memory:4010504192total_system_memory_human: 系統(tǒng)內(nèi)存總量used_memory_lua:49152used_memory_lua_human:maxmemory:256000000maxmemory_human:maxmemory_policy:volatilettlmem_fragmentation_ratio:mem_allocator:libc Persistenceloading:0rdb_changes_since_last_save:2rdb_bgsave_in_progress:0rdb_last_save_time:1506436853rdb_last_bgsave_status:okrdb_last_bgsave_time_sec:0rdb_current_bgsave_time_sec:1aof_enabled:0 redis是否開(kāi)啟了aofaof_rewrite_in_progress:0aof_rewrite_scheduled:0aof_last_rewrite_time_sec:1aof_current_rewrite_time_sec:1aof_last_bgrewrite_status:okaof_last_write_status:ok Statstotal_connections_received:346605 運(yùn)行以來(lái)連接過(guò)的客戶(hù)端的總數(shù)量total_mands_processed:4084150 運(yùn)行以來(lái)執(zhí)行過(guò)的命令的總數(shù)量instantaneous_ops_per_sec:0total_net_input_bytes:197967251total_net_output_bytes:78672012instantaneous_input_kbps:instantaneous_output_kbps:rejected_connections:0sync_full:0sync_partial_ok:0sync_partial_err:0expired_keys:0evicted_keys:0keyspace_hits:346624keyspace_misses:898947pubsub_channels:0pubsub_patterns:0latest_fork_usec:195migrate_cached_sockets:0 Replicationrole:master 當(dāng)前實(shí)例的角色master還是slaveconnected_slaves:0 當(dāng)前連接slave數(shù)量master_repl_offset:0repl_backlog_active:0repl_backlog_size:1048576repl_backlog_first_byte_offset:0repl_backlog_histlen:0 CPUused_cpu_sys: CPU 系統(tǒng)使用量used_cpu_user: CPU用戶(hù)使用量used_cpu_sys_children: CPU系統(tǒng)子進(jìn)程使用量used_cpu_user_children: CPU用戶(hù)子進(jìn)程使用量 Clustercluster_enabled:0 集群模式啟動(dòng) Keyspacedb0:keys=1,expires=0,avg_ttl=0 各個(gè)數(shù)據(jù)庫(kù)的 key 的數(shù)量,以及帶有生存期的 key 的數(shù)量 db1:keys=1,expires=0,avg_ttl=0db6:keys=1,expires=0,avg_ttl=0:6379[1] select 6 選擇db6庫(kù)目錄OK:6379[6] keys * 查看當(dāng)前庫(kù)目錄下的所有key值1) demo 當(dāng)前庫(kù)目錄下只有“demo”一個(gè)key值:6379[6] LINDEX demo 1 查看“demo”key的第二個(gè)value{\message\:\2\,\@version\:\1\,\@timestamp\:\20170926T15:57:\,\host\:\elknode2\}:6379[6] LINDEX demo 1 查看“demo”key的最后一個(gè)value{\message\:\8\,\@version\:\1\,\@timestamp\:\20170926T15:57:\,\host\:\elknode2\}以上實(shí)驗(yàn)證明輸入信息可以正常輸出到redis數(shù)據(jù)庫(kù)對(duì)應(yīng)庫(kù)中,并以key:value簡(jiǎn)直對(duì)的形式存儲(chǔ)。 輸出信息到Elasticsearch vim /etc/logstash/ input { redis { host = password = mima redis認(rèn)證密碼 port = 6379 redis端口 db = 6 此處的db庫(kù)名應(yīng)與此前寫(xiě)入redis數(shù)據(jù)庫(kù)的庫(kù)名一致。 data_type = list key = demo 此處的key值名應(yīng)與此前寫(xiě)入redis數(shù)據(jù)庫(kù)的key值名一致。 }}output { elasticsearch { 將redis庫(kù)中的數(shù)據(jù)輸出到es中 hosts = [:9200] es服務(wù)IP+端口 index = 39。redisin%{+}39。 redis日志名稱(chēng) }}驗(yàn)證: logstash f /etc/logstash/ amp。打開(kāi)瀏覽器,輸入es系統(tǒng)的ip+端口,查看redis是否寫(xiě)入到系統(tǒng)中。Redis日志成功輸出到es系統(tǒng),并且分片存儲(chǔ)。 收集Nginx日志Nginx:客戶(hù)端需要安裝logstash agent。(1) 、首先需要安裝Nginx和logstash agent(2) 、nginx配置Nginx配置文件路徑:/etc/nginx/ vim /etc/nginx/ 將nginx的日志格式配置為json格式 ........................log_format json 39。{@timestamp:$time_iso860139。 時(shí)間 39。client_user:$remote_user,39。 客戶(hù)端用戶(hù) 39。client_ip:$remote_addr,39。 客戶(hù)端IP地址 39。request:$request,39。 請(qǐng)求 39。status:$status,39。 請(qǐng)求狀態(tài) 39。size:$body_bytes_sent,39。 請(qǐng)求包大小 39。user_agent:$_user_agent,39。 客戶(hù)端瀏覽器 39。referer:$_referer,39。 39。xforwardedfor:$_x_forwarded_for39。 39。}39。........................................... vim /etc/nginx/server { listen 8080。 server_name 。 access_log /data/logs/ json。 location / { root /data//html。 index 。 }} /etc/nginx: the configuration file /etc/nginx/ syntax is oknginx: configuration file /etc/nginx/ test is successfulStopping nginx: [ OK ]Starting nginx: [ OK ](3) 、Logstash agent配置Logstash配置文件路徑:/usr/local/logstash/ vim /usr/local/logstash/ input { 輸入信息 file { path = [/data/logs/] acess日志文件路徑 type = nginx_access_log 類(lèi)型 start_position = beginning 從什么地方開(kāi)始收集 codec = json 收集格式 } file { path = [/data/logs/] error日志文件路徑 type = nginx_error_log 類(lèi)型 start_position = beginning 從什么地方開(kāi)始收集 codec = json 收集格式 }}output { 輸出信息 if [type] == nginx_access_log{ 判斷輸出類(lèi)型 redis{ 輸出到redis數(shù)據(jù)庫(kù)中 host = [] redis主機(jī)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1