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

正文內(nèi)容

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

2025-05-03 18:47本頁面
  

【正文】 Will shutdown filter/output workers. {:level=:info}Pipeline main has been shutdownstopping pipeline {:id=main}Closing inputs {:level=:info}Closed inputs {:level=:info}驗證: rediscli h p 6379 登陸redis數(shù)據(jù)庫:6379 auth mima 密碼驗證,如果此處沒有進行密碼驗證,則會報出錯誤,錯誤信息如下:“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 當前 Redis 服務器進程idrun_id:3563e3ab4f6739fde5a523a668bca974b202706etcp_port:6379uptime_in_seconds:357768 運行時長(秒)uptime_in_days:4 運行時長(天)hz:10lru_clock:13265422executable:/usr/local/redis/bin/redisserverconfig_file:/etc/redis/ Clients connected_clients:1 客戶端連接數(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是否開啟了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 運行以來連接過的客戶端的總數(shù)量total_mands_processed:4084150 運行以來執(zhí)行過的命令的總數(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 當前實例的角色master還是slaveconnected_slaves:0 當前連接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用戶使用量used_cpu_sys_children: CPU系統(tǒng)子進程使用量used_cpu_user_children: CPU用戶子進程使用量 Clustercluster_enabled:0 集群模式啟動 Keyspacedb0:keys=1,expires=0,avg_ttl=0 各個數(shù)據(jù)庫的 key 的數(shù)量,以及帶有生存期的 key 的數(shù)量 db1:keys=1,expires=0,avg_ttl=0db6:keys=1,expires=0,avg_ttl=0:6379[1] select 6 選擇db6庫目錄OK:6379[6] keys * 查看當前庫目錄下的所有key值1) demo 當前庫目錄下只有“demo”一個key值:6379[6] LINDEX demo 1 查看“demo”key的第二個value{\message\:\2\,\@version\:\1\,\@timestamp\:\20170926T15:57:\,\host\:\elknode2\}:6379[6] LINDEX demo 1 查看“demo”key的最后一個value{\message\:\8\,\@version\:\1\,\@timestamp\:\20170926T15:57:\,\host\:\elknode2\}以上實驗證明輸入信息可以正常輸出到redis數(shù)據(jù)庫對應庫中,并以key:value簡直對的形式存儲。 輸出信息到Elasticsearch vim /etc/logstash/ input { redis { host = password = mima redis認證密碼 port = 6379 redis端口 db = 6 此處的db庫名應與此前寫入redis數(shù)據(jù)庫的庫名一致。 data_type = list key = demo 此處的key值名應與此前寫入redis數(shù)據(jù)庫的key值名一致。 }}output { elasticsearch { 將redis庫中的數(shù)據(jù)輸出到es中 hosts = [:9200] es服務IP+端口 index = 39。redisin%{+}39。 redis日志名稱 }}驗證: logstash f /etc/logstash/ amp。打開瀏覽器,輸入es系統(tǒng)的ip+端口,查看redis是否寫入到系統(tǒng)中。Redis日志成功輸出到es系統(tǒng),并且分片存儲。 收集Nginx日志Nginx:客戶端需要安裝logstash agent。(1) 、首先需要安裝Nginx和logstash agent(2) 、nginx配置Nginx配置文件路徑:/etc/nginx/ vim /etc/nginx/ 將nginx的日志格式配置為json格式 ........................log_format json 39。{@timestamp:$time_iso860139。 時間 39。client_user:$remote_user,39。 客戶端用戶 39。client_ip:$remote_addr,39。 客戶端IP地址 39。request:$request,39。 請求 39。status:$status,39。 請求狀態(tài) 39。size:$body_bytes_sent,39。 請求包大小 39。user_agent:$_user_agent,39。 客戶端瀏覽器 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 類型 start_position = beginning 從什么地方開始收集 codec = json 收集格式 } file { path = [/data/logs/] error日志文件路徑 type = nginx_error_log 類型 start_position = beginning 從什么地方開始收集 codec = json 收集格式 }}output { 輸出信息 if [type] == nginx_access_log{ 判斷輸出類型 redis{ 輸出到redis數(shù)據(jù)庫中 host = [] redis主機
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1