Advertisement
cirrus528

Untitled

Jul 28th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.60 KB | None | 0 0
  1. Kibana.yml
  2.  
  3. # Kibana is served by a back end server. This controls which port to use.
  4. # server.port: 5601
  5.  
  6. # The host to bind the server to.
  7. server.host: "192.168.164.155"
  8. # 192.168.164.155 points to Ubuntu Server
  9.  
  10. # If you are running kibana behind a proxy, and want to mount it at a path,
  11. # specify that path here. The basePath can't end in a slash.
  12. # server.basePath: ""
  13.  
  14. # The maximum payload size in bytes on incoming server requests.
  15. # server.maxPayloadBytes: 1048576
  16.  
  17. # The Elasticsearch instance to use for all your queries.
  18. # elasticsearch.url: "http://localhost:9200"
  19.  
  20. # preserve_elasticsearch_host true will send the hostname specified in `elasticsearch`. If you set it to false,
  21. # then the host you use to connect to *this* Kibana instance will be sent.
  22. elasticsearch.preserveHost: true
  23.  
  24. # Kibana uses an index in Elasticsearch to store saved searches, visualizations
  25. # and dashboards. It will create a new index if it doesn't already exist.
  26. # kibana.index: ".kibana"
  27.  
  28. # The default application to load.
  29. # kibana.defaultAppId: "discover"
  30.  
  31. # If your Elasticsearch is protected with basic auth, these are the user credentials
  32. # used by the Kibana server to perform maintenance on the kibana_index at startup. Your Kibana
  33. # users will still need to authenticate with Elasticsearch (which is proxied through
  34. # the Kibana server)
  35. # elasticsearch.username: "user"
  36. # elasticsearch.password: "pass"
  37.  
  38. # SSL for outgoing requests from the Kibana Server to the browser (PEM formatted)
  39. # server.ssl.cert: /path/to/your/server.crt
  40. # server.ssl.key: /path/to/your/server.key
  41.  
  42. # Optional setting to validate that your Elasticsearch backend uses the same key files (PEM formatted)
  43. # elasticsearch.ssl.cert: /path/to/your/client.crt
  44. # elasticsearch.ssl.key: /path/to/your/client.key
  45.  
  46. # If you need to provide a CA certificate for your Elasticsearch instance, put
  47. # the path of the pem file here.
  48. # elasticsearch.ssl.ca: /path/to/your/CA.pem
  49.  
  50. # Set to false to have a complete disregard for the validity of the SSL
  51. # certificate.
  52. # elasticsearch.ssl.verify: true
  53.  
  54. # Time in milliseconds to wait for elasticsearch to respond to pings, defaults to
  55. # request_timeout setting
  56. # elasticsearch.pingTimeout: 1500
  57.  
  58. # Time in milliseconds to wait for responses from the back end or elasticsearch.
  59. # This must be > 0
  60. # elasticsearch.requestTimeout: 30000
  61.  
  62. # Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten
  63. # by client-side headers.
  64. # elasticsearch.customHeaders: {}
  65.  
  66. # Time in milliseconds for Elasticsearch to wait for responses from shards.
  67. # Set to 0 to disable.
  68. # elasticsearch.shardTimeout: 0
  69.  
  70. # Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying
  71. # elasticsearch.startupTimeout: 5000
  72.  
  73. # Set the path to where you would like the process id file to be created.
  74. # pid.file: /var/run/kibana.pid
  75.  
  76. # If you would like to send the log output to a file you can set the path below.
  77. # logging.dest: stdout
  78.  
  79. # Set this to true to suppress all logging output.
  80. # logging.silent: false
  81.  
  82. # Set this to true to suppress all logging output except for error messages.
  83. # logging.quiet: false
  84.  
  85. # Set this to true to log all events, including system usage information and all requests.
  86. # logging.verbose: false
  87.  
  88.  
  89. logstash.yml
  90.  
  91. # Settings file in YAML
  92. #
  93. # Settings can be specified either in hierarchical form, e.g.:
  94. #
  95. # pipeline:
  96. # batch:
  97. # size: 125
  98. # delay: 5
  99. #
  100. # Or as flat keys:
  101. #
  102. # pipeline.batch.size: 125
  103. # pipeline.batch.delay: 5
  104. #
  105. # ------------ Node identity ------------
  106. #
  107. # Use a descriptive name for the node:
  108. #
  109. # node.name: test
  110. #
  111. # If omitted the node name will default to the machine's host name
  112. #
  113. # ------------ Data path ------------------
  114. #
  115. # Which directory should be used by logstash and its plugins
  116. # for any persistent needs. Defaults to LOGSTASH_HOME/data
  117. #
  118. path.data: /var/lib/logstash
  119. #
  120. # ------------ Pipeline Settings --------------
  121. #
  122. # The ID of the pipeline.
  123. #
  124. # pipeline.id: main
  125. #
  126. # Set the number of workers that will, in parallel, execute the filters+outputs
  127. # stage of the pipeline.
  128. #
  129. # This defaults to the number of the host's CPU cores.
  130. #
  131. # pipeline.workers: 2
  132. #
  133. # How many events to retrieve from inputs before sending to filters+workers
  134. #
  135. # pipeline.batch.size: 125
  136. #
  137. # How long to wait in milliseconds while polling for the next event
  138. # before dispatching an undersized batch to filters+outputs
  139. #
  140. # pipeline.batch.delay: 50
  141. #
  142. # Force Logstash to exit during shutdown even if there are still inflight
  143. # events in memory. By default, logstash will refuse to quit until all
  144. # received events have been pushed to the outputs.
  145. #
  146. # WARNING: enabling this can lead to data loss during shutdown
  147. #
  148. # pipeline.unsafe_shutdown: false
  149. #
  150. # ------------ Pipeline Configuration Settings --------------
  151. #
  152. # Where to fetch the pipeline configuration for the main pipeline
  153. #
  154. # path.config:
  155. #
  156. # Pipeline configuration string for the main pipeline
  157. #
  158. # config.string:
  159. #
  160. # At startup, test if the configuration is valid and exit (dry run)
  161. #
  162. # config.test_and_exit: false
  163. #
  164. # Periodically check if the configuration has changed and reload the pipeline
  165. # This can also be triggered manually through the SIGHUP signal
  166. #
  167. # config.reload.automatic: false
  168. #
  169. # How often to check if the pipeline configuration has changed (in seconds)
  170. #
  171. # config.reload.interval: 3s
  172. #
  173. # Show fully compiled configuration as debug log message
  174. # NOTE: --log.level must be 'debug'
  175. #
  176. # config.debug: false
  177. #
  178. # When enabled, process escaped characters such as \n and \" in strings in the
  179. # pipeline configuration files.
  180. #
  181. # config.support_escapes: false
  182. #
  183. # ------------ Module Settings ---------------
  184. # Define modules here. Modules definitions must be defined as an array.
  185. # The simple way to see this is to prepend each `name` with a `-`, and keep
  186. # all associated variables under the `name` they are associated with, and
  187. # above the next, like this:
  188. #
  189. # modules:
  190. # - name: MODULE_NAME
  191. # var.PLUGINTYPE1.PLUGINNAME1.KEY1: VALUE
  192. # var.PLUGINTYPE1.PLUGINNAME1.KEY2: VALUE
  193. # var.PLUGINTYPE2.PLUGINNAME1.KEY1: VALUE
  194. # var.PLUGINTYPE3.PLUGINNAME3.KEY1: VALUE
  195. #
  196. # Module variable names must be in the format of
  197. #
  198. # var.PLUGIN_TYPE.PLUGIN_NAME.KEY
  199. #
  200. # modules:
  201. #
  202. # ------------ Cloud Settings ---------------
  203. # Define Elastic Cloud settings here.
  204. # Format of cloud.id is a base64 value e.g. dXMtZWFzdC0xLmF3cy5mb3VuZC5pbyRub3RhcmVhbCRpZGVudGlmaWVy
  205. # and it may have an label prefix e.g. staging:dXMtZ...
  206. # This will overwrite 'var.elasticsearch.hosts' and 'var.kibana.host'
  207. # cloud.id: <identifier>
  208. #
  209. # Format of cloud.auth is: <user>:<pass>
  210. # This is optional
  211. # If supplied this will overwrite 'var.elasticsearch.username' and 'var.elasticsearch.password'
  212. # If supplied this will overwrite 'var.kibana.username' and 'var.kibana.password'
  213. # cloud.auth: elastic:<password>
  214. #
  215. # ------------ Queuing Settings --------------
  216. #
  217. # Internal queuing model, "memory" for legacy in-memory based queuing and
  218. # "persisted" for disk-based acked queueing. Defaults is memory
  219. #
  220. # queue.type: memory
  221. #
  222. # If using queue.type: persisted, the directory path where the data files will be stored.
  223. # Default is path.data/queue
  224. #
  225. # path.queue:
  226. #
  227. # If using queue.type: persisted, the page data files size. The queue data consists of
  228. # append-only data files separated into pages. Default is 64mb
  229. #
  230. # queue.page_capacity: 64mb
  231. #
  232. # If using queue.type: persisted, the maximum number of unread events in the queue.
  233. # Default is 0 (unlimited)
  234. #
  235. # queue.max_events: 0
  236. #
  237. # If using queue.type: persisted, the total capacity of the queue in number of bytes.
  238. # If you would like more unacked events to be buffered in Logstash, you can increase the
  239. # capacity using this setting. Please make sure your disk drive has capacity greater than
  240. # the size specified here. If both max_bytes and max_events are specified, Logstash will pick
  241. # whichever criteria is reached first
  242. # Default is 1024mb or 1gb
  243. #
  244. # queue.max_bytes: 1024mb
  245. #
  246. # If using queue.type: persisted, the maximum number of acked events before forcing a checkpoint
  247. # Default is 1024, 0 for unlimited
  248. #
  249. # queue.checkpoint.acks: 1024
  250. #
  251. # If using queue.type: persisted, the maximum number of written events before forcing a checkpoint
  252. # Default is 1024, 0 for unlimited
  253. #
  254. # queue.checkpoint.writes: 1024
  255. #
  256. # If using queue.type: persisted, the interval in milliseconds when a checkpoint is forced on the head page
  257. # Default is 1000, 0 for no periodic checkpoint.
  258. #
  259. # queue.checkpoint.interval: 1000
  260. #
  261. # ------------ Dead-Letter Queue Settings --------------
  262. # Flag to turn on dead-letter queue.
  263. #
  264. # dead_letter_queue.enable: false
  265.  
  266. # If using dead_letter_queue.enable: true, the maximum size of each dead letter queue. Entries
  267. # will be dropped if they would increase the size of the dead letter queue beyond this setting.
  268. # Default is 1024mb
  269. # dead_letter_queue.max_bytes: 1024mb
  270.  
  271. # If using dead_letter_queue.enable: true, the directory path where the data files will be stored.
  272. # Default is path.data/dead_letter_queue
  273. #
  274. # path.dead_letter_queue:
  275. #
  276. # ------------ Metrics Settings --------------
  277. #
  278. # Bind address for the metrics REST endpoint
  279. #
  280. # http.host: "127.0.0.1"
  281. #
  282. # Bind port for the metrics REST endpoint, this option also accept a range
  283. # (9600-9700) and logstash will pick up the first available ports.
  284. #
  285. # http.port: 9600-9700
  286. #
  287. # ------------ Debugging Settings --------------
  288. #
  289. # Options for log.level:
  290. # * fatal
  291. # * error
  292. # * warn
  293. # * info (default)
  294. # * debug
  295. # * trace
  296. #
  297. # log.level: info
  298. path.logs: /var/log/logstash
  299. #
  300. # ------------ Other Settings --------------
  301. #
  302. # Where to find custom plugins
  303. # path.plugins: []
  304. #
  305. # ------------ X-Pack Settings (not applicable for OSS build)--------------
  306. #
  307. # X-Pack Monitoring
  308. # https://www.elastic.co/guide/en/logstash/current/monitoring-logstash.html
  309. #xpack.monitoring.enabled: false
  310. #xpack.monitoring.elasticsearch.username: logstash_system
  311. #xpack.monitoring.elasticsearch.password: password
  312. #xpack.monitoring.elasticsearch.url: ["https://es1:9200", "https://es2:9200"]
  313. #xpack.monitoring.elasticsearch.ssl.ca: [ "/path/to/ca.crt" ]
  314. #xpack.monitoring.elasticsearch.ssl.truststore.path: path/to/file
  315. #xpack.monitoring.elasticsearch.ssl.truststore.password: password
  316. #xpack.monitoring.elasticsearch.ssl.keystore.path: /path/to/file
  317. #xpack.monitoring.elasticsearch.ssl.keystore.password: password
  318. #xpack.monitoring.elasticsearch.ssl.verification_mode: certificate
  319. #xpack.monitoring.elasticsearch.sniffing: false
  320. #xpack.monitoring.collection.interval: 10s
  321. #xpack.monitoring.collection.pipeline.details.enabled: true
  322. #
  323. # X-Pack Management
  324. # https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html
  325. #xpack.management.enabled: false
  326. #xpack.management.pipeline.id: ["main", "apache_logs"]
  327. #xpack.management.elasticsearch.username: logstash_admin_user
  328. #xpack.management.elasticsearch.password: password
  329. #xpack.management.elasticsearch.url: ["https://es1:9200", "https://es2:9200"]
  330. #xpack.management.elasticsearch.ssl.ca: [ "/path/to/ca.crt" ]
  331. #xpack.management.elasticsearch.ssl.truststore.path: /path/to/file
  332. #xpack.management.elasticsearch.ssl.truststore.password: password
  333. #xpack.management.elasticsearch.ssl.keystore.path: /path/to/file
  334. #xpack.management.elasticsearch.ssl.keystore.password: password
  335. #xpack.management.elasticsearch.sniffing: false
  336. #xpack.management.logstash.poll_interval: 5s
  337.  
  338.  
  339.  
  340. 30-elasticsearch-output.conf
  341.  
  342. output {
  343. elasticsearch {
  344. hosts => ["192.168.164.155:9200"]
  345. sniffing => true
  346. manage_template => false
  347. index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
  348. document_type => "%{[@metadata][type]}"
  349. }
  350. }
  351.  
  352.  
  353. elasticsearch.yml
  354.  
  355. # ======================== Elasticsearch Configuration =========================
  356. #
  357. # NOTE: Elasticsearch comes with reasonable defaults for most settings.
  358. # Before you set out to tweak and tune the configuration, make sure you
  359. # understand what are you trying to accomplish and the consequences.
  360. #
  361. # The primary way of configuring a node is via this file. This template lists
  362. # the most important settings you may want to configure for a production cluster.
  363. #
  364. # Please see the documentation for further information on configuration options:
  365. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
  366. #
  367. # ---------------------------------- Cluster -----------------------------------
  368. #
  369. # Use a descriptive name for your cluster:
  370. #
  371. # cluster.name: my-application
  372. #
  373. # ------------------------------------ Node ------------------------------------
  374. #
  375. # Use a descriptive name for the node:
  376. #
  377. # node.name: node-1
  378. #
  379. # Add custom attributes to the node:
  380. #
  381. # node.rack: r1
  382. #
  383. # ----------------------------------- Paths ------------------------------------
  384. #
  385. # Path to directory where to store the data (separate multiple locations by comma):
  386. #
  387. # path.data: /path/to/data
  388. #
  389. # Path to log files:
  390. #
  391. # path.logs: /path/to/logs
  392. #
  393. # ----------------------------------- Memory -----------------------------------
  394. #
  395. # Lock the memory on startup:
  396. #
  397. # bootstrap.memory_lock: true
  398. #
  399. # Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
  400. # available on the system and that the owner of the process is allowed to use this limit.
  401. #
  402. # Elasticsearch performs poorly when the system is swapping the memory.
  403. #
  404. # ---------------------------------- Network -----------------------------------
  405. #
  406. # Set the bind address to a specific IP (IPv4 or IPv6):
  407. #
  408. network.host: 192.168.164.155
  409. network.bind_host: 0
  410. #
  411. # Set a custom port for HTTP:
  412. #
  413. # http.port: 9200
  414. #
  415. # For more information, see the documentation at:
  416. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
  417. #
  418. # --------------------------------- Discovery ----------------------------------
  419. #
  420. # Pass an initial list of hosts to perform discovery when new node is started:
  421. # The default list of hosts is ["127.0.0.1", "[::1]"]
  422. #
  423. # discovery.zen.ping.unicast.hosts: ["host1", "host2"]
  424. #
  425. # Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
  426. #
  427. # discovery.zen.minimum_master_nodes: 3
  428. #
  429. # For more information, see the documentation at:
  430. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
  431. #
  432. # ---------------------------------- Gateway -----------------------------------
  433. #
  434. # Block initial recovery after a full cluster restart until N nodes are started:
  435. #
  436. # gateway.recover_after_nodes: 3
  437. #
  438. # For more information, see the documentation at:
  439. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
  440. #
  441. # ---------------------------------- Various -----------------------------------
  442. #
  443. # Disable starting multiple nodes on a single system:
  444. #
  445. # node.max_local_storage_nodes: 1
  446. #
  447. # Require explicit names when deleting indices:
  448. #
  449. # action.destructive_requires_name: true
  450.  
  451.  
  452. elasticsearch/logging.yml
  453.  
  454. # you can override this using by setting a system property, for example -Des.logger.level=DEBUG
  455. es.logger.level: INFO
  456. rootLogger: ${es.logger.level}, console, file
  457. logger:
  458. # log action execution errors for easier debugging
  459. action: DEBUG
  460.  
  461. # deprecation logging, turn to DEBUG to see them
  462. deprecation: INFO, deprecation_log_file
  463.  
  464. # reduce the logging for aws, too much is logged under the default INFO
  465. com.amazonaws: WARN
  466. # aws will try to do some sketchy JMX stuff, but its not needed.
  467. com.amazonaws.jmx.SdkMBeanRegistrySupport: ERROR
  468. com.amazonaws.metrics.AwsSdkMetrics: ERROR
  469.  
  470. org.apache.http: INFO
  471.  
  472. # gateway
  473. #gateway: DEBUG
  474. #index.gateway: DEBUG
  475.  
  476. # peer shard recovery
  477. #indices.recovery: DEBUG
  478.  
  479. # discovery
  480. #discovery: TRACE
  481.  
  482. index.search.slowlog: TRACE, index_search_slow_log_file
  483. index.indexing.slowlog: TRACE, index_indexing_slow_log_file
  484.  
  485. additivity:
  486. index.search.slowlog: false
  487. index.indexing.slowlog: false
  488. deprecation: false
  489.  
  490. appender:
  491. console:
  492. type: console
  493. layout:
  494. type: consolePattern
  495. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  496.  
  497. file:
  498. type: dailyRollingFile
  499. file: ${path.logs}/${cluster.name}.log
  500. datePattern: "'.'yyyy-MM-dd"
  501. layout:
  502. type: pattern
  503. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %.10000m%n"
  504.  
  505. # Use the following log4j-extras RollingFileAppender to enable gzip compression of log files.
  506. # For more information see https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html
  507. #file:
  508. #type: extrasRollingFile
  509. #file: ${path.logs}/${cluster.name}.log
  510. #rollingPolicy: timeBased
  511. #rollingPolicy.FileNamePattern: ${path.logs}/${cluster.name}.log.%d{yyyy-MM-dd}.gz
  512. #layout:
  513. #type: pattern
  514. #conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  515.  
  516. deprecation_log_file:
  517. type: dailyRollingFile
  518. file: ${path.logs}/${cluster.name}_deprecation.log
  519. datePattern: "'.'yyyy-MM-dd"
  520. layout:
  521. type: pattern
  522. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  523.  
  524. index_search_slow_log_file:
  525. type: dailyRollingFile
  526. file: ${path.logs}/${cluster.name}_index_search_slowlog.log
  527. datePattern: "'.'yyyy-MM-dd"
  528. layout:
  529. type: pattern
  530. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
  531.  
  532. index_indexing_slow_log_file:
  533. type: dailyRollingFile
  534. file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
  535. datePattern: "'.'yyyy-MM-dd"
  536. layout:
  537. type: pattern
  538. conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement