ELK 요점 사이트 정리 - ParkSeWoo/ELK-ElasticSearch-Logstach-Kibana- GitHub Wiki
http://okdevtv.com/mib/elk/elk
trends.google.com
https://okdevtv.com/mib/nginx/nginx
일단 놓친 부분은 히스토리 참조하자
[ec2-user@ip-172-31-8-105 indices]$ history 1 sudo yum update -y 2 pwd 3 mkdir local 4 ls 5 cd local/ 6 ls 7 sudo yum install nginx -y 8 sudo service nginx start 9 curl -i http://localhost 10 sudo chown -R ec2-user:ec2-user /var/log/nginx /usr/share/nginx/html 11 echo "
" > /usr/share/nginx/html/hello.html 12 ls 13 clear 14 pwd 15 ls 16 wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.3/elasticsearch-2.3.3.tar.gz 17 tar xvfz elasticsearch-2.3.3.tar.gz 18 ln -s elasticsearch-2.3.3 elasticsearch 19 cd elasticsearch 20 ls 21 vi config/elasticsearch.yml 22 ps -ef | grep elastic 23 ls 24 bin/elasticsearch -d 25 ps -ef | grep elastic 26 kill -9 7135 27 ps -ef | grep elastic 28 curl localhost:9200 29 ps -ef | grep elastic 30 curl localhost:9200 31 bin/elasticsearch -d 32 curl localhost:9200 33 ls 34 pwd 35 cd .. 36 ls 37 wget https://download.elastic.co/kibana/kibana/kibana-4.5.1-linux-x64.tar.gz 38 tar xvfz kibana-4.5.1-linux-x64.tar.gz 39 ln -s kibana-4.5.1-linux-x64 kibana 40 cd kibana 41 ps -ef | grep elastic 42 kill -9 7208 43 cd .. 44 ls 45 wget https://download.elastic.co/logstash/logstash/logstash-2.3.2.tar.gz 46 tar xvfz logstash-2.3.2.tar.gz 47 ln -s logstash-2.3.2 logstash 48 cd logstash 49 ls 50 mkdir logconf 51 cd logconf/ 52 vi nginx.conf 53 ls 54 cd .. 55 ls 56 cd bin 57 ls 58 ./logstash -f logconf/nginx.conf 59 cd .. 60 ls 61 cd .. 62 ls 63 cd kibana 64 ls 65 bin/kibana 66 cd . 67 cd .. 68 ls 69 cd elasticsearch 70 ls 71 cd bin/ 72 ls 73 curl -i http://localhost:9200/ 74 elasticsearch -d 75 ls 76 ./elasticsearch -d 77 ls 78 cd .. 79 ls 80 cd .. 81 ls 82 cd logstash 83 ls 84 bin/logstash -f logconf/nginx.conf 85 bg 86 ls 87 cd .. 88 ls 89 ps -ef | grep kibana 90 ls -ef | grep elastic 91 ps -ef | grep elastic 92 kill -9 7301 93 ls 94 ps -ef | grep elastic 95 kill -9 7380 96 ls 97 bg 98 cd kibana 99 ls 100 bin/kibana 101 cd .. 102 ls 103 cd elasticsearch 104 ls 105 ./bin/elasticsearch -d 106 ps -ef | grep elastic 107 cd .. 108 ls 109 cd kibana 110 ls 111 cd bin/ 112 ls 113 bin/kibana 114 # background run 115 nohup bin/kibana & 116 cd .. 117 bin/kibana 118 cd local 119 ls 120 cd logstash 121 ls 122 ps -ef | gre[ ;pgstasj 123 ps -ef | grep logstash 124 ls 125 clear 126 ls 127 df 128 df -h 129 ls 130 cd .. 131 ls 132 mkdir okky 133 ls 134 cd okky/ 135 ls 136 pwd 137 curl -O http://okky.kr/examples/access.log-20160624.gz 138 cp access.log-20160624.gz access-okky.log.gz 139 ls 140 gunzip access-okky.log.gz 141 ls 142 ls -al 143 cp access-okky.log /var/log/nginx/ 144 ls 145 dstat 146 sudo yum install dstat 147 diff 148 dstat 60 149 cd ~/local/ 150 ls 151 cd elasticsearch 152 ls 153 cd data/elasticsearch/nodes/0/indices/ 154 ls 155 cd ~/local/logstash 156 vi logconf/nginx.conf 157 ps -ef | grep logstash 158 kill -9 7438 159 ls 160 ps -ef | grep logstash 161 history | grep nohup 162 history | grep log 163 bin/logstash -f logconf/nginx.conf 164 dstat 60 165 java -version 166 ps -ef | grep elastic 167 kill -9 7537 168 cd .. 169 ls 170 cd elasticsearch 171 ls 172 cd bin 173 ls 174 ./elasticsearch -d 175 ls 176 cd .. 177 ls 178 cd .. 179 ls 180 cd kibana 181 ls 182 history | grep -F 183 history | grep -f 184 history | grep f 185 ls 186 cd bin 187 ls 188 nohup bin/kibana & 189 cd .. 190 nohup bin/kibana & 191 ls 192 ps -ef | grep kibana 193 ps -ef | grep kiba 194 cd .. 195 ls 196 cd logstash 197 ls 198 cd logconf/ 199 ls 200 vi nginx.conf 201 ps -ef | grep logst 202 ps -ef | grep logstash 203 nohup bin/logstash -f logconf/nginx.conf & 204 ps -ef | grep logstash 205 ps -ef | grep note 206 ps -ef | grep node 207 curl -XDELETE "localhost:9200/logstash*" 208 cd ~/local/elasticsearch/data/elasticsearch/nodes/0/indices 209 ls 210 ll 211 ls 212 cd .. 213 ls 214 cd indices/ 215 ls 216 curl -XDELETE "localhost:9200/logstash*" 217 cd ~/local/logstash 218 history 219 nohup bin/logstash -f logconf/nginx.conf & 220 dstat 60 221 cd - 222 ls -al 223 cd /var/log/nginx 224 ls 225 cp access-okky.log access2.log 226 dstat 60 227 cd - 228 ls 229 ls -al 230 distat 60 231 dstat 60 232 ls 233 pwd 234 history