Advertisement
Guest User

Untitled

a guest
May 13th, 2019
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.90 KB | None | 0 0
  1. ############################
  2. # GRAYLOG CONFIGURATION FILE
  3. ############################
  4. #
  5. # This is the Graylog configuration file. The file has to use ISO 8859-1/Latin-1 character encoding.
  6. # Characters that cannot be directly represented in this encoding can be written using Unicode escapes
  7. # as defined in https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.3, using the \u prefix.
  8. # For example, \u002c.
  9. #
  10. # * Entries are generally expected to be a single line of the form, one of the following:
  11. #
  12. # propertyName=propertyValue
  13. # propertyName:propertyValue
  14. #
  15. # * White space that appears between the property name and property value is ignored,
  16. # so the following are equivalent:
  17. #
  18. # name=Stephen
  19. # name = Stephen
  20. #
  21. # * White space at the beginning of the line is also ignored.
  22. #
  23. # * Lines that start with the comment characters ! or # are ignored. Blank lines are also ignored.
  24. #
  25. # * The property value is generally terminated by the end of the line. White space following the
  26. # property value is not ignored, and is treated as part of the property value.
  27. #
  28. # * A property value can span several lines if each line is terminated by a backslash (‘\’) character.
  29. # For example:
  30. #
  31. # targetCities=\
  32. # Detroit,\
  33. # Chicago,\
  34. # Los Angeles
  35. #
  36. # This is equivalent to targetCities=Detroit,Chicago,Los Angeles (white space at the beginning of lines is ignored).
  37. #
  38. # * The characters newline, carriage return, and tab can be inserted with characters \n, \r, and \t, respectively.
  39. #
  40. # * The backslash character must be escaped as a double backslash. For example:
  41. #
  42. # path=c:\\docs\\doc1
  43. #
  44.  
  45. # If you are running more than one instances of Graylog server you have to select one of these
  46. # instances as master. The master will perform some periodical tasks that non-masters won't perform.
  47. is_master = true
  48.  
  49. # The auto-generated node ID will be stored in this file and read after restarts. It is a good idea
  50. # to use an absolute file path here if you are starting Graylog server from init scripts or similar.
  51. node_id_file = /usr/share/graylog/data/config/node-id
  52.  
  53. # You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters.
  54. # Generate one by using for example: pwgen -N 1 -s 96
  55. password_secret = replacethiswithyourownsecret!
  56.  
  57. # The default root user is named 'admin'
  58. #root_username = admin
  59.  
  60. # You MUST specify a hash password for the root user (which you only need to initially set up the
  61. # system and in case you lose connectivity to your authentication backend)
  62. # This password cannot be changed using the API or via the web interface. If you need to change it,
  63. # modify it in this file.
  64. # Create one by using for example: echo -n yourpassword | shasum -a 256
  65. # and put the resulting hash value into the following line
  66.  
  67. # Default password: admin
  68. # CHANGE THIS!
  69. root_password_sha2 = xxxxxxxxxxxxxxxxxxxxxxxxxxx
  70.  
  71. # The email address of the root user.
  72. # Default is empty
  73. #root_email = ""
  74.  
  75. # The time zone setting of the root user. See http://www.joda.org/joda-time/timezones.html for a list of valid time zones.
  76. # Default is UTC
  77. #root_timezone = UTC
  78.  
  79. # Set plugin directory here (relative or absolute)
  80. plugin_dir = /usr/share/graylog/plugin
  81.  
  82. # REST API listen URI. Must be reachable by other Graylog server nodes if you run a cluster.
  83. # When using Graylog Collectors, this URI will be used to receive heartbeat messages and must be accessible for all collectors.
  84. rest_listen_uri = http://0.0.0.0:9000/api/
  85.  
  86. # REST API transport address. Defaults to the value of rest_listen_uri. Exception: If rest_listen_uri
  87. # is set to a wildcard IP address (0.0.0.0) the first non-loopback IPv4 system address is used.
  88. # If set, this will be promoted in the cluster discovery APIs, so other nodes may try to connect on
  89. # this address and it is used to generate URLs addressing entities in the REST API. (see rest_listen_uri)
  90. # You will need to define this, if your Graylog server is running behind a HTTP proxy that is rewriting
  91. # the scheme, host name or URI.
  92. # This must not contain a wildcard address (0.0.0.0).
  93. #rest_transport_uri = http://192.168.1.1:9000/api/
  94.  
  95. # Enable CORS headers for REST API. This is necessary for JS-clients accessing the server directly.
  96. # If these are disabled, modern browsers will not be able to retrieve resources from the server.
  97. # This is enabled by default. Uncomment the next line to disable it.
  98. #rest_enable_cors = false
  99.  
  100. # Enable GZIP support for REST API. This compresses API responses and therefore helps to reduce
  101. # overall round trip times. This is enabled by default. Uncomment the next line to disable it.
  102. #rest_enable_gzip = false
  103.  
  104. # Enable HTTPS support for the REST API. This secures the communication with the REST API with
  105. # TLS to prevent request forgery and eavesdropping. This is disabled by default. Uncomment the
  106. # next line to enable it.
  107. #rest_enable_tls = true
  108.  
  109. # The X.509 certificate chain file in PEM format to use for securing the REST API.
  110. #rest_tls_cert_file = /path/to/graylog.crt
  111.  
  112. # The PKCS#8 private key file in PEM format to use for securing the REST API.
  113. #rest_tls_key_file = /path/to/graylog.key
  114.  
  115. # The password to unlock the private key used for securing the REST API.
  116. #rest_tls_key_password = secret
  117.  
  118. # The maximum size of the HTTP request headers in bytes.
  119. #rest_max_header_size = 8192
  120.  
  121. # The size of the thread pool used exclusively for serving the REST API.
  122. #rest_thread_pool_size = 16
  123.  
  124. # Comma separated list of trusted proxies that are allowed to set the client address with X-Forwarded-For
  125. # header. May be subnets, or hosts.
  126. #trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128
  127.  
  128. # Enable the embedded Graylog web interface.
  129. # Default: true
  130. #web_enable = false
  131.  
  132. # Web interface listen URI.
  133. # Configuring a path for the URI here effectively prefixes all URIs in the web interface. This is a replacement
  134. # for the application.context configuration parameter in pre-2.0 versions of the Graylog web interface.
  135. web_listen_uri = http://0.0.0.0:9000/
  136.  
  137. # Web interface endpoint URI. This setting can be overriden on a per-request basis with the X-Graylog-Server-URL header.
  138. # Default: $rest_transport_uri
  139. #web_endpoint_uri =
  140.  
  141. # Enable CORS headers for the web interface. This is necessary for JS-clients accessing the server directly.
  142. # If these are disabled, modern browsers will not be able to retrieve resources from the server.
  143. #web_enable_cors = false
  144.  
  145. # Enable/disable GZIP support for the web interface. This compresses HTTP responses and therefore helps to reduce
  146. # overall round trip times. This is enabled by default. Uncomment the next line to disable it.
  147. #web_enable_gzip = false
  148.  
  149. # Enable HTTPS support for the web interface. This secures the communication of the web browser with the web interface
  150. # using TLS to prevent request forgery and eavesdropping.
  151. # This is disabled by default. Uncomment the next line to enable it and see the other related configuration settings.
  152. #web_enable_tls = true
  153.  
  154. # The X.509 certificate chain file in PEM format to use for securing the web interface.
  155. #web_tls_cert_file = /path/to/graylog-web.crt
  156.  
  157. # The PKCS#8 private key file in PEM format to use for securing the web interface.
  158. #web_tls_key_file = /path/to/graylog-web.key
  159.  
  160. # The password to unlock the private key used for securing the web interface.
  161. #web_tls_key_password = secret
  162.  
  163. # The maximum size of the HTTP request headers in bytes.
  164. #web_max_header_size = 8192
  165.  
  166. # The size of the thread pool used exclusively for serving the web interface.
  167. #web_thread_pool_size = 16
  168.  
  169. # List of Elasticsearch hosts Graylog should connect to.
  170. # Need to be specified as a comma-separated list of valid URIs for the http ports of your elasticsearch nodes.
  171. # If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that
  172. # requires authentication.
  173. #
  174. # Default: http://127.0.0.1:9200
  175. elasticsearch_hosts = http://elasticsearch:9200
  176.  
  177. # Maximum amount of time to wait for successfull connection to Elasticsearch HTTP port.
  178. #
  179. # Default: 10 Seconds
  180. #elasticsearch_connect_timeout = 10s
  181.  
  182. # Maximum amount of time to wait for reading back a response from an Elasticsearch server.
  183. #
  184. # Default: 60 seconds
  185. #elasticsearch_socket_timeout = 60s
  186.  
  187. # Maximum idle time for an Elasticsearch connection. If this is exceeded, this connection will
  188. # be tore down.
  189. #
  190. # Default: inf
  191. #elasticsearch_idle_timeout = -1s
  192.  
  193. # Maximum number of total connections to Elasticsearch.
  194. #
  195. # Default: 20
  196. #elasticsearch_max_total_connections = 20
  197.  
  198. # Maximum number of total connections per Elasticsearch route (normally this means per
  199. # elasticsearch server).
  200. #
  201. # Default: 2
  202. #elasticsearch_max_total_connections_per_route = 2
  203.  
  204. # Maximum number of times Graylog will retry failed requests to Elasticsearch.
  205. #
  206. # Default: 2
  207. #elasticsearch_max_retries = 2
  208.  
  209. # Enable automatic Elasticsearch node discovery through Nodes Info,
  210. # see https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-nodes-info.html
  211. #
  212. # WARNING: Automatic node discovery does not work if Elasticsearch requires authentication, e. g. with Shield.
  213. #
  214. # Default: false
  215. #elasticsearch_discovery_enabled = true
  216.  
  217. # Filter for including/excluding Elasticsearch nodes in discovery according to their custom attributes,
  218. # see https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster.html#cluster-nodes
  219. #
  220. # Default: empty
  221. #elasticsearch_discovery_filter = rack:42
  222.  
  223. # Frequency of the Elasticsearch node discovery.
  224. #
  225. # Default: 30s
  226. # elasticsearch_discovery_frequency = 30s
  227.  
  228. # Enable payload compression for Elasticsearch requests.
  229. #
  230. # Default: false
  231. #elasticsearch_compression_enabled = true
  232.  
  233. # Disable checking the version of Elasticsearch for being compatible with this Graylog release.
  234. # WARNING: Using Graylog with unsupported and untested versions of Elasticsearch may lead to data loss!
  235. #elasticsearch_disable_version_check = true
  236.  
  237. # Disable message retention on this node, i. e. disable Elasticsearch index rotation.
  238. #no_retention = false
  239.  
  240. # Do you want to allow searches with leading wildcards? This can be extremely resource hungry and should only
  241. # be enabled with care. See also: http://docs.graylog.org/en/2.1/pages/queries.html
  242. allow_leading_wildcard_searches = false
  243.  
  244. # Do you want to allow searches to be highlighted? Depending on the size of your messages this can be memory hungry and
  245. # should only be enabled after making sure your Elasticsearch cluster has enough memory.
  246. allow_highlighting = false
  247.  
  248. # Global request timeout for Elasticsearch requests (e. g. during search, index creation, or index time-range
  249. # calculations) based on a best-effort to restrict the runtime of Elasticsearch operations.
  250. # Default: 1m
  251. #elasticsearch_request_timeout = 1m
  252.  
  253. # Global timeout for index optimization (force merge) requests.
  254. # Default: 1h
  255. #elasticsearch_index_optimization_timeout = 1h
  256.  
  257. # Maximum number of concurrently running index optimization (force merge) jobs.
  258. # If you are using lots of different index sets, you might want to increase that number.
  259. # Default: 20
  260. #elasticsearch_index_optimization_jobs = 20
  261.  
  262. # Time interval for index range information cleanups. This setting defines how often stale index range information
  263. # is being purged from the database.
  264. # Default: 1h
  265. #index_ranges_cleanup_interval = 1h
  266.  
  267. # Batch size for the Elasticsearch output. This is the maximum (!) number of messages the Elasticsearch output
  268. # module will get at once and write to Elasticsearch in a batch call. If the configured batch size has not been
  269. # reached within output_flush_interval seconds, everything that is available will be flushed at once. Remember
  270. # that every outputbuffer processor manages its own batch and performs its own batch write calls.
  271. # ("outputbuffer_processors" variable)
  272. output_batch_size = 500
  273.  
  274. # Flush interval (in seconds) for the Elasticsearch output. This is the maximum amount of time between two
  275. # batches of messages written to Elasticsearch. It is only effective at all if your minimum number of messages
  276. # for this time period is less than output_batch_size * outputbuffer_processors.
  277. output_flush_interval = 1
  278.  
  279. # As stream outputs are loaded only on demand, an output which is failing to initialize will be tried over and
  280. # over again. To prevent this, the following configuration options define after how many faults an output will
  281. # not be tried again for an also configurable amount of seconds.
  282. output_fault_count_threshold = 5
  283. output_fault_penalty_seconds = 30
  284.  
  285. # The number of parallel running processors.
  286. # Raise this number if your buffers are filling up.
  287. processbuffer_processors = 5
  288. outputbuffer_processors = 3
  289.  
  290. # The following settings (outputbuffer_processor_*) configure the thread pools backing each output buffer processor.
  291. # See https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadPoolExecutor.html for technical details
  292.  
  293. # When the number of threads is greater than the core (see outputbuffer_processor_threads_core_pool_size),
  294. # this is the maximum time in milliseconds that excess idle threads will wait for new tasks before terminating.
  295. # Default: 5000
  296. #outputbuffer_processor_keep_alive_time = 5000
  297.  
  298. # The number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
  299. # Default: 3
  300. #outputbuffer_processor_threads_core_pool_size = 3
  301.  
  302. # The maximum number of threads to allow in the pool
  303. # Default: 30
  304. #outputbuffer_processor_threads_max_pool_size = 30
  305.  
  306. # UDP receive buffer size for all message inputs (e. g. SyslogUDPInput).
  307. #udp_recvbuffer_sizes = 1048576
  308.  
  309. # Wait strategy describing how buffer processors wait on a cursor sequence. (default: sleeping)
  310. # Possible types:
  311. # - yielding
  312. # Compromise between performance and CPU usage.
  313. # - sleeping
  314. # Compromise between performance and CPU usage. Latency spikes can occur after quiet periods.
  315. # - blocking
  316. # High throughput, low latency, higher CPU usage.
  317. # - busy_spinning
  318. # Avoids syscalls which could introduce latency jitter. Best when threads can be bound to specific CPU cores.
  319. processor_wait_strategy = blocking
  320.  
  321. # Size of internal ring buffers. Raise this if raising outputbuffer_processors does not help anymore.
  322. # For optimum performance your LogMessage objects in the ring buffer should fit in your CPU L3 cache.
  323. # Must be a power of 2. (512, 1024, 2048, ...)
  324. ring_size = 65536
  325.  
  326. inputbuffer_ring_size = 65536
  327. inputbuffer_processors = 2
  328. inputbuffer_wait_strategy = blocking
  329.  
  330. # Enable the disk based message journal.
  331. message_journal_enabled = true
  332.  
  333. # The directory which will be used to store the message journal. The directory must me exclusively used by Graylog and
  334. # must not contain any other files than the ones created by Graylog itself.
  335. #
  336. # ATTENTION:
  337. # If you create a seperate partition for the journal files and use a file system creating directories like 'lost+found'
  338. # in the root directory, you need to create a sub directory for your journal.
  339. # Otherwise Graylog will log an error message that the journal is corrupt and Graylog will not start.
  340. message_journal_dir = /usr/share/graylog/data/journal
  341.  
  342. # Journal hold messages before they could be written to Elasticsearch.
  343. # For a maximum of 12 hours or 5 GB whichever happens first.
  344. # During normal operation the journal will be smaller.
  345. #message_journal_max_age = 12h
  346. #message_journal_max_size = 5gb
  347.  
  348. #message_journal_flush_age = 1m
  349. #message_journal_flush_interval = 1000000
  350. #message_journal_segment_age = 1h
  351. #message_journal_segment_size = 100mb
  352.  
  353. # Number of threads used exclusively for dispatching internal events. Default is 2.
  354. #async_eventbus_processors = 2
  355.  
  356. # How many seconds to wait between marking node as DEAD for possible load balancers and starting the actual
  357. # shutdown process. Set to 0 if you have no status checking load balancers in front.
  358. lb_recognition_period_seconds = 3
  359.  
  360. # Journal usage percentage that triggers requesting throttling for this server node from load balancers. The feature is
  361. # disabled if not set.
  362. #lb_throttle_threshold_percentage = 95
  363.  
  364. # Every message is matched against the configured streams and it can happen that a stream contains rules which
  365. # take an unusual amount of time to run, for example if its using regular expressions that perform excessive backtracking.
  366. # This will impact the processing of the entire server. To keep such misbehaving stream rules from impacting other
  367. # streams, Graylog limits the execution time for each stream.
  368. # The default values are noted below, the timeout is in milliseconds.
  369. # If the stream matching for one stream took longer than the timeout value, and this happened more than "max_faults" times
  370. # that stream is disabled and a notification is shown in the web interface.
  371. #stream_processing_timeout = 2000
  372. #stream_processing_max_faults = 3
  373.  
  374. # Length of the interval in seconds in which the alert conditions for all streams should be checked
  375. # and alarms are being sent.
  376. #alert_check_interval = 60
  377.  
  378. # Since 0.21 the Graylog server supports pluggable output modules. This means a single message can be written to multiple
  379. # outputs. The next setting defines the timeout for a single output module, including the default output module where all
  380. # messages end up.
  381. #
  382. # Time in milliseconds to wait for all message outputs to finish writing a single message.
  383. #output_module_timeout = 10000
  384.  
  385. # Time in milliseconds after which a detected stale master node is being rechecked on startup.
  386. #stale_master_timeout = 2000
  387.  
  388. # Time in milliseconds which Graylog is waiting for all threads to stop on shutdown.
  389. #shutdown_timeout = 30000
  390.  
  391. # MongoDB connection string
  392. # See https://docs.mongodb.com/manual/reference/connection-string/ for details
  393. mongodb_uri = mongodb://mongo/graylog
  394.  
  395. # Authenticate against the MongoDB server
  396. #mongodb_uri = mongodb://grayloguser:secret@mongo:27017/graylog
  397.  
  398. # Use a replica set instead of a single host
  399. #mongodb_uri = mongodb://grayloguser:secret@mongo:27017,mongo:27018,mongo:27019/graylog
  400.  
  401. # Increase this value according to the maximum connections your MongoDB server can handle from a single client
  402. # if you encounter MongoDB connection problems.
  403. mongodb_max_connections = 100
  404.  
  405. # Number of threads allowed to be blocked by MongoDB connections multiplier. Default: 5
  406. # If mongodb_max_connections is 100, and mongodb_threads_allowed_to_block_multiplier is 5,
  407. # then 500 threads can block. More than that and an exception will be thrown.
  408. # http://api.mongodb.com/java/current/com/mongodb/MongoOptions.html#threadsAllowedToBlockForConnectionMultiplier
  409. mongodb_threads_allowed_to_block_multiplier = 5
  410.  
  411. # Drools Rule File (Use to rewrite incoming log messages)
  412. # See: http://docs.graylog.org/en/2.1/pages/drools.html
  413. #rules_file = /etc/graylog/server/rules.drl
  414.  
  415. # Email transport
  416. #transport_email_enabled = false
  417. #transport_email_hostname = mail.example.com
  418. #transport_email_port = 587
  419. #transport_email_use_auth = true
  420. #transport_email_use_tls = true
  421. #transport_email_use_ssl = true
  422. #transport_email_auth_username = you@example.com
  423. #transport_email_auth_password = secret
  424. #transport_email_subject_prefix = [graylog]
  425. #transport_email_from_email = graylog@example.com
  426.  
  427. # Specify and uncomment this if you want to include links to the stream in your stream alert mails.
  428. # This should define the fully qualified base url to your web interface exactly the same way as it is accessed by your users.
  429. #transport_email_web_interface_url = https://graylog.example.com
  430.  
  431. # The default connect timeout for outgoing HTTP connections.
  432. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  433. # Default: 5s
  434. #http_connect_timeout = 5s
  435.  
  436. # The default read timeout for outgoing HTTP connections.
  437. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  438. # Default: 10s
  439. #http_read_timeout = 10s
  440.  
  441. # The default write timeout for outgoing HTTP connections.
  442. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  443. # Default: 10s
  444. #http_write_timeout = 10s
  445.  
  446. # HTTP proxy for outgoing HTTP connections
  447. #http_proxy_uri =
  448.  
  449. # The threshold of the garbage collection runs. If GC runs take longer than this threshold, a system notification
  450. # will be generated to warn the administrator about possible problems with the system. Default is 1 second.
  451. #gc_warning_threshold = 1s
  452.  
  453. # Connection timeout for a configured LDAP server (e. g. ActiveDirectory) in milliseconds.
  454. #ldap_connection_timeout = 2000
  455.  
  456. # Disable the use of SIGAR for collecting system stats
  457. #disable_sigar = false
  458.  
  459. # The default cache time for dashboard widgets. (Default: 10 seconds, minimum: 1 second)
  460. #dashboard_widget_default_cache_time = 10s
  461.  
  462. # Automatically load content packs in "content_packs_dir" on the first start of Graylog.
  463. content_packs_loader_enabled = true
  464.  
  465. # The directory which contains content packs which should be loaded on the first start of Graylog.
  466. content_packs_dir = /usr/share/graylog/data/contentpacks
  467.  
  468. # A comma-separated list of content packs (files in "content_packs_dir") which should be applied on
  469. # the first start of G############################
  470. # GRAYLOG CONFIGURATION FILE
  471. ############################
  472. #
  473. # This is the Graylog configuration file. The file has to use ISO 8859-1/Latin-1 character encoding.
  474. # Characters that cannot be directly represented in this encoding can be written using Unicode escapes
  475. # as defined in https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.3, using the \u prefix.
  476. # For example, \u002c.
  477. #
  478. # * Entries are generally expected to be a single line of the form, one of the following:
  479. #
  480. # propertyName=propertyValue
  481. # propertyName:propertyValue
  482. #
  483. # * White space that appears between the property name and property value is ignored,
  484. # so the following are equivalent:
  485. #
  486. # name=Stephen
  487. # name = Stephen
  488. #
  489. # * White space at the beginning of the line is also ignored.
  490. #
  491. # * Lines that start with the comment characters ! or # are ignored. Blank lines are also ignored.
  492. #
  493. # * The property value is generally terminated by the end of the line. White space following the
  494. # property value is not ignored, and is treated as part of the property value.
  495. #
  496. # * A property value can span several lines if each line is terminated by a backslash (‘\’) character.
  497. # For example:
  498. #
  499. # targetCities=\
  500. # Detroit,\
  501. # Chicago,\
  502. # Los Angeles
  503. #
  504. # This is equivalent to targetCities=Detroit,Chicago,Los Angeles (white space at the beginning of lines is ignored).
  505. #
  506. # * The characters newline, carriage return, and tab can be inserted with characters \n, \r, and \t, respectively.
  507. #
  508. # * The backslash character must be escaped as a double backslash. For example:
  509. #
  510. # path=c:\\docs\\doc1
  511. #
  512.  
  513. # If you are running more than one instances of Graylog server you have to select one of these
  514. # instances as master. The master will perform some periodical tasks that non-masters won't perform.
  515. is_master = true
  516.  
  517. # The auto-generated node ID will be stored in this file and read after restarts. It is a good idea
  518. # to use an absolute file path here if you are starting Graylog server from init scripts or similar.
  519. node_id_file = /usr/share/graylog/data/config/node-id
  520.  
  521. # You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters.
  522. # Generate one by using for example: pwgen -N 1 -s 96
  523. password_secret = replacethiswithyourownsecret!
  524.  
  525. # The default root user is named 'admin'
  526. #root_username = admin
  527.  
  528. # You MUST specify a hash password for the root user (which you only need to initially set up the
  529. # system and in case you lose connectivity to your authentication backend)
  530. # This password cannot be changed using the API or via the web interface. If you need to change it,
  531. # modify it in this file.
  532. # Create one by using for example: echo -n yourpassword | shasum -a 256
  533. # and put the resulting hash value into the following line
  534.  
  535. # Default password: admin
  536. # CHANGE THIS!
  537. root_password_sha2 = xxxxxxxxxxxxxxxxxxxxxxxxxxx
  538.  
  539. # The email address of the root user.
  540. # Default is empty
  541. #root_email = ""
  542.  
  543. # The time zone setting of the root user. See http://www.joda.org/joda-time/timezones.html for a list of valid time zones.
  544. # Default is UTC
  545. #root_timezone = UTC
  546.  
  547. # Set plugin directory here (relative or absolute)
  548. plugin_dir = /usr/share/graylog/plugin
  549.  
  550. # REST API listen URI. Must be reachable by other Graylog server nodes if you run a cluster.
  551. # When using Graylog Collectors, this URI will be used to receive heartbeat messages and must be accessible for all collectors.
  552. rest_listen_uri = http://0.0.0.0:9000/api/
  553.  
  554. # REST API transport address. Defaults to the value of rest_listen_uri. Exception: If rest_listen_uri
  555. # is set to a wildcard IP address (0.0.0.0) the first non-loopback IPv4 system address is used.
  556. # If set, this will be promoted in the cluster discovery APIs, so other nodes may try to connect on
  557. # this address and it is used to generate URLs addressing entities in the REST API. (see rest_listen_uri)
  558. # You will need to define this, if your Graylog server is running behind a HTTP proxy that is rewriting
  559. # the scheme, host name or URI.
  560. # This must not contain a wildcard address (0.0.0.0).
  561. #rest_transport_uri = http://192.168.1.1:9000/api/
  562.  
  563. # Enable CORS headers for REST API. This is necessary for JS-clients accessing the server directly.
  564. # If these are disabled, modern browsers will not be able to retrieve resources from the server.
  565. # This is enabled by default. Uncomment the next line to disable it.
  566. #rest_enable_cors = false
  567.  
  568. # Enable GZIP support for REST API. This compresses API responses and therefore helps to reduce
  569. # overall round trip times. This is enabled by default. Uncomment the next line to disable it.
  570. #rest_enable_gzip = false
  571.  
  572. # Enable HTTPS support for the REST API. This secures the communication with the REST API with
  573. # TLS to prevent request forgery and eavesdropping. This is disabled by default. Uncomment the
  574. # next line to enable it.
  575. #rest_enable_tls = true
  576.  
  577. # The X.509 certificate chain file in PEM format to use for securing the REST API.
  578. #rest_tls_cert_file = /path/to/graylog.crt
  579.  
  580. # The PKCS#8 private key file in PEM format to use for securing the REST API.
  581. #rest_tls_key_file = /path/to/graylog.key
  582.  
  583. # The password to unlock the private key used for securing the REST API.
  584. #rest_tls_key_password = secret
  585.  
  586. # The maximum size of the HTTP request headers in bytes.
  587. #rest_max_header_size = 8192
  588.  
  589. # The size of the thread pool used exclusively for serving the REST API.
  590. #rest_thread_pool_size = 16
  591.  
  592. # Comma separated list of trusted proxies that are allowed to set the client address with X-Forwarded-For
  593. # header. May be subnets, or hosts.
  594. #trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128
  595.  
  596. # Enable the embedded Graylog web interface.
  597. # Default: true
  598. #web_enable = false
  599.  
  600. # Web interface listen URI.
  601. # Configuring a path for the URI here effectively prefixes all URIs in the web interface. This is a replacement
  602. # for the application.context configuration parameter in pre-2.0 versions of the Graylog web interface.
  603. web_listen_uri = http://0.0.0.0:9000/
  604.  
  605. # Web interface endpoint URI. This setting can be overriden on a per-request basis with the X-Graylog-Server-URL header.
  606. # Default: $rest_transport_uri
  607. #web_endpoint_uri =
  608.  
  609. # Enable CORS headers for the web interface. This is necessary for JS-clients accessing the server directly.
  610. # If these are disabled, modern browsers will not be able to retrieve resources from the server.
  611. #web_enable_cors = false
  612.  
  613. # Enable/disable GZIP support for the web interface. This compresses HTTP responses and therefore helps to reduce
  614. # overall round trip times. This is enabled by default. Uncomment the next line to disable it.
  615. #web_enable_gzip = false
  616.  
  617. # Enable HTTPS support for the web interface. This secures the communication of the web browser with the web interface
  618. # using TLS to prevent request forgery and eavesdropping.
  619. # This is disabled by default. Uncomment the next line to enable it and see the other related configuration settings.
  620. #web_enable_tls = true
  621.  
  622. # The X.509 certificate chain file in PEM format to use for securing the web interface.
  623. #web_tls_cert_file = /path/to/graylog-web.crt
  624.  
  625. # The PKCS#8 private key file in PEM format to use for securing the web interface.
  626. #web_tls_key_file = /path/to/graylog-web.key
  627.  
  628. # The password to unlock the private key used for securing the web interface.
  629. #web_tls_key_password = secret
  630.  
  631. # The maximum size of the HTTP request headers in bytes.
  632. #web_max_header_size = 8192
  633.  
  634. # The size of the thread pool used exclusively for serving the web interface.
  635. #web_thread_pool_size = 16
  636.  
  637. # List of Elasticsearch hosts Graylog should connect to.
  638. # Need to be specified as a comma-separated list of valid URIs for the http ports of your elasticsearch nodes.
  639. # If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that
  640. # requires authentication.
  641. #
  642. # Default: http://127.0.0.1:9200
  643. elasticsearch_hosts = http://elasticsearch:9200
  644.  
  645. # Maximum amount of time to wait for successfull connection to Elasticsearch HTTP port.
  646. #
  647. # Default: 10 Seconds
  648. #elasticsearch_connect_timeout = 10s
  649.  
  650. # Maximum amount of time to wait for reading back a response from an Elasticsearch server.
  651. #
  652. # Default: 60 seconds
  653. #elasticsearch_socket_timeout = 60s
  654.  
  655. # Maximum idle time for an Elasticsearch connection. If this is exceeded, this connection will
  656. # be tore down.
  657. #
  658. # Default: inf
  659. #elasticsearch_idle_timeout = -1s
  660.  
  661. # Maximum number of total connections to Elasticsearch.
  662. #
  663. # Default: 20
  664. #elasticsearch_max_total_connections = 20
  665.  
  666. # Maximum number of total connections per Elasticsearch route (normally this means per
  667. # elasticsearch server).
  668. #
  669. # Default: 2
  670. #elasticsearch_max_total_connections_per_route = 2
  671.  
  672. # Maximum number of times Graylog will retry failed requests to Elasticsearch.
  673. #
  674. # Default: 2
  675. #elasticsearch_max_retries = 2
  676.  
  677. # Enable automatic Elasticsearch node discovery through Nodes Info,
  678. # see https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-nodes-info.html
  679. #
  680. # WARNING: Automatic node discovery does not work if Elasticsearch requires authentication, e. g. with Shield.
  681. #
  682. # Default: false
  683. #elasticsearch_discovery_enabled = true
  684.  
  685. # Filter for including/excluding Elasticsearch nodes in discovery according to their custom attributes,
  686. # see https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster.html#cluster-nodes
  687. #
  688. # Default: empty
  689. #elasticsearch_discovery_filter = rack:42
  690.  
  691. # Frequency of the Elasticsearch node discovery.
  692. #
  693. # Default: 30s
  694. # elasticsearch_discovery_frequency = 30s
  695.  
  696. # Enable payload compression for Elasticsearch requests.
  697. #
  698. # Default: false
  699. #elasticsearch_compression_enabled = true
  700.  
  701. # Disable checking the version of Elasticsearch for being compatible with this Graylog release.
  702. # WARNING: Using Graylog with unsupported and untested versions of Elasticsearch may lead to data loss!
  703. #elasticsearch_disable_version_check = true
  704.  
  705. # Disable message retention on this node, i. e. disable Elasticsearch index rotation.
  706. #no_retention = false
  707.  
  708. # Do you want to allow searches with leading wildcards? This can be extremely resource hungry and should only
  709. # be enabled with care. See also: http://docs.graylog.org/en/2.1/pages/queries.html
  710. allow_leading_wildcard_searches = false
  711.  
  712. # Do you want to allow searches to be highlighted? Depending on the size of your messages this can be memory hungry and
  713. # should only be enabled after making sure your Elasticsearch cluster has enough memory.
  714. allow_highlighting = false
  715.  
  716. # Global request timeout for Elasticsearch requests (e. g. during search, index creation, or index time-range
  717. # calculations) based on a best-effort to restrict the runtime of Elasticsearch operations.
  718. # Default: 1m
  719. #elasticsearch_request_timeout = 1m
  720.  
  721. # Global timeout for index optimization (force merge) requests.
  722. # Default: 1h
  723. #elasticsearch_index_optimization_timeout = 1h
  724.  
  725. # Maximum number of concurrently running index optimization (force merge) jobs.
  726. # If you are using lots of different index sets, you might want to increase that number.
  727. # Default: 20
  728. #elasticsearch_index_optimization_jobs = 20
  729.  
  730. # Time interval for index range information cleanups. This setting defines how often stale index range information
  731. # is being purged from the database.
  732. # Default: 1h
  733. #index_ranges_cleanup_interval = 1h
  734.  
  735. # Batch size for the Elasticsearch output. This is the maximum (!) number of messages the Elasticsearch output
  736. # module will get at once and write to Elasticsearch in a batch call. If the configured batch size has not been
  737. # reached within output_flush_interval seconds, everything that is available will be flushed at once. Remember
  738. # that every outputbuffer processor manages its own batch and performs its own batch write calls.
  739. # ("outputbuffer_processors" variable)
  740. output_batch_size = 500
  741.  
  742. # Flush interval (in seconds) for the Elasticsearch output. This is the maximum amount of time between two
  743. # batches of messages written to Elasticsearch. It is only effective at all if your minimum number of messages
  744. # for this time period is less than output_batch_size * outputbuffer_processors.
  745. output_flush_interval = 1
  746.  
  747. # As stream outputs are loaded only on demand, an output which is failing to initialize will be tried over and
  748. # over again. To prevent this, the following configuration options define after how many faults an output will
  749. # not be tried again for an also configurable amount of seconds.
  750. output_fault_count_threshold = 5
  751. output_fault_penalty_seconds = 30
  752.  
  753. # The number of parallel running processors.
  754. # Raise this number if your buffers are filling up.
  755. processbuffer_processors = 5
  756. outputbuffer_processors = 3
  757.  
  758. # The following settings (outputbuffer_processor_*) configure the thread pools backing each output buffer processor.
  759. # See https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadPoolExecutor.html for technical details
  760.  
  761. # When the number of threads is greater than the core (see outputbuffer_processor_threads_core_pool_size),
  762. # this is the maximum time in milliseconds that excess idle threads will wait for new tasks before terminating.
  763. # Default: 5000
  764. #outputbuffer_processor_keep_alive_time = 5000
  765.  
  766. # The number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
  767. # Default: 3
  768. #outputbuffer_processor_threads_core_pool_size = 3
  769.  
  770. # The maximum number of threads to allow in the pool
  771. # Default: 30
  772. #outputbuffer_processor_threads_max_pool_size = 30
  773.  
  774. # UDP receive buffer size for all message inputs (e. g. SyslogUDPInput).
  775. #udp_recvbuffer_sizes = 1048576
  776.  
  777. # Wait strategy describing how buffer processors wait on a cursor sequence. (default: sleeping)
  778. # Possible types:
  779. # - yielding
  780. # Compromise between performance and CPU usage.
  781. # - sleeping
  782. # Compromise between performance and CPU usage. Latency spikes can occur after quiet periods.
  783. # - blocking
  784. # High throughput, low latency, higher CPU usage.
  785. # - busy_spinning
  786. # Avoids syscalls which could introduce latency jitter. Best when threads can be bound to specific CPU cores.
  787. processor_wait_strategy = blocking
  788.  
  789. # Size of internal ring buffers. Raise this if raising outputbuffer_processors does not help anymore.
  790. # For optimum performance your LogMessage objects in the ring buffer should fit in your CPU L3 cache.
  791. # Must be a power of 2. (512, 1024, 2048, ...)
  792. ring_size = 65536
  793.  
  794. inputbuffer_ring_size = 65536
  795. inputbuffer_processors = 2
  796. inputbuffer_wait_strategy = blocking
  797.  
  798. # Enable the disk based message journal.
  799. message_journal_enabled = true
  800.  
  801. # The directory which will be used to store the message journal. The directory must me exclusively used by Graylog and
  802. # must not contain any other files than the ones created by Graylog itself.
  803. #
  804. # ATTENTION:
  805. # If you create a seperate partition for the journal files and use a file system creating directories like 'lost+found'
  806. # in the root directory, you need to create a sub directory for your journal.
  807. # Otherwise Graylog will log an error message that the journal is corrupt and Graylog will not start.
  808. message_journal_dir = /usr/share/graylog/data/journal
  809.  
  810. # Journal hold messages before they could be written to Elasticsearch.
  811. # For a maximum of 12 hours or 5 GB whichever happens first.
  812. # During normal operation the journal will be smaller.
  813. #message_journal_max_age = 12h
  814. #message_journal_max_size = 5gb
  815.  
  816. #message_journal_flush_age = 1m
  817. #message_journal_flush_interval = 1000000
  818. #message_journal_segment_age = 1h
  819. #message_journal_segment_size = 100mb
  820.  
  821. # Number of threads used exclusively for dispatching internal events. Default is 2.
  822. #async_eventbus_processors = 2
  823.  
  824. # How many seconds to wait between marking node as DEAD for possible load balancers and starting the actual
  825. # shutdown process. Set to 0 if you have no status checking load balancers in front.
  826. lb_recognition_period_seconds = 3
  827.  
  828. # Journal usage percentage that triggers requesting throttling for this server node from load balancers. The feature is
  829. # disabled if not set.
  830. #lb_throttle_threshold_percentage = 95
  831.  
  832. # Every message is matched against the configured streams and it can happen that a stream contains rules which
  833. # take an unusual amount of time to run, for example if its using regular expressions that perform excessive backtracking.
  834. # This will impact the processing of the entire server. To keep such misbehaving stream rules from impacting other
  835. # streams, Graylog limits the execution time for each stream.
  836. # The default values are noted below, the timeout is in milliseconds.
  837. # If the stream matching for one stream took longer than the timeout value, and this happened more than "max_faults" times
  838. # that stream is disabled and a notification is shown in the web interface.
  839. #stream_processing_timeout = 2000
  840. #stream_processing_max_faults = 3
  841.  
  842. # Length of the interval in seconds in which the alert conditions for all streams should be checked
  843. # and alarms are being sent.
  844. #alert_check_interval = 60
  845.  
  846. # Since 0.21 the Graylog server supports pluggable output modules. This means a single message can be written to multiple
  847. # outputs. The next setting defines the timeout for a single output module, including the default output module where all
  848. # messages end up.
  849. #
  850. # Time in milliseconds to wait for all message outputs to finish writing a single message.
  851. #output_module_timeout = 10000
  852.  
  853. # Time in milliseconds after which a detected stale master node is being rechecked on startup.
  854. #stale_master_timeout = 2000
  855.  
  856. # Time in milliseconds which Graylog is waiting for all threads to stop on shutdown.
  857. #shutdown_timeout = 30000
  858.  
  859. # MongoDB connection string
  860. # See https://docs.mongodb.com/manual/reference/connection-string/ for details
  861. mongodb_uri = mongodb://mongo/graylog
  862.  
  863. # Authenticate against the MongoDB server
  864. #mongodb_uri = mongodb://grayloguser:secret@mongo:27017/graylog
  865.  
  866. # Use a replica set instead of a single host
  867. #mongodb_uri = mongodb://grayloguser:secret@mongo:27017,mongo:27018,mongo:27019/graylog
  868.  
  869. # Increase this value according to the maximum connections your MongoDB server can handle from a single client
  870. # if you encounter MongoDB connection problems.
  871. mongodb_max_connections = 100
  872.  
  873. # Number of threads allowed to be blocked by MongoDB connections multiplier. Default: 5
  874. # If mongodb_max_connections is 100, and mongodb_threads_allowed_to_block_multiplier is 5,
  875. # then 500 threads can block. More than that and an exception will be thrown.
  876. # http://api.mongodb.com/java/current/com/mongodb/MongoOptions.html#threadsAllowedToBlockForConnectionMultiplier
  877. mongodb_threads_allowed_to_block_multiplier = 5
  878.  
  879. # Drools Rule File (Use to rewrite incoming log messages)
  880. # See: http://docs.graylog.org/en/2.1/pages/drools.html
  881. #rules_file = /etc/graylog/server/rules.drl
  882.  
  883. # Email transport
  884. #transport_email_enabled = false
  885. #transport_email_hostname = mail.example.com
  886. #transport_email_port = 587
  887. #transport_email_use_auth = true
  888. #transport_email_use_tls = true
  889. #transport_email_use_ssl = true
  890. #transport_email_auth_username = you@example.com
  891. #transport_email_auth_password = secret
  892. #transport_email_subject_prefix = [graylog]
  893. #transport_email_from_email = graylog@example.com
  894.  
  895. # Specify and uncomment this if you want to include links to the stream in your stream alert mails.
  896. # This should define the fully qualified base url to your web interface exactly the same way as it is accessed by your users.
  897. #transport_email_web_interface_url = https://graylog.example.com
  898.  
  899. # The default connect timeout for outgoing HTTP connections.
  900. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  901. # Default: 5s
  902. #http_connect_timeout = 5s
  903.  
  904. # The default read timeout for outgoing HTTP connections.
  905. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  906. # Default: 10s
  907. #http_read_timeout = 10s
  908.  
  909. # The default write timeout for outgoing HTTP connections.
  910. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  911. # Default: 10s
  912. #http_write_timeout = 10s
  913.  
  914. # HTTP proxy for outgoing HTTP connections
  915. #http_proxy_uri =
  916.  
  917. # The threshold of the garbage collection runs. If GC runs take longer than this threshold, a system notification
  918. # will be generated to warn the administrator about possible problems with the system. Default is 1 second.
  919. #gc_warning_threshold = 1s
  920.  
  921. # Connection timeout for a configured LDAP server (e. g. ActiveDirectory) in milliseconds.
  922. #ldap_connection_timeout = 2000
  923.  
  924. # Disable the use of SIGAR for collecting system stats
  925. #disable_sigar = false
  926.  
  927. # The default cache time for dashboard widgets. (Default: 10 seconds, minimum: 1 second)
  928. #dashboard_widget_default_cache_time = 10s
  929.  
  930. # Automatically load content packs in "content_packs_dir" on the first start of Graylog.
  931. content_packs_loader_enabled = true
  932.  
  933. # The directory which contains content packs which should be loaded on the first start of Graylog.
  934. content_packs_dir = /usr/share/graylog/data/contentpacks
  935.  
  936. # A comma-separated list of content packs (files in "content_packs_dir") which should be applied on
  937. # the first start of Graylog.
  938. # Default: empty
  939. content_packs_auto_load = grok-patterns.json
  940.  
  941. # For some cluster-related REST requests, the node must query all other nodes in the cluster. This is the maximum number
  942. # of threads available for this. Increase it, if '/cluster/*' requests take long to complete.
  943. # Should be rest_thread_pool_size * average_cluster_size if you have a high number of concurrent users.
  944. proxied_requests_thread_pool_size = 32
  945. root@graylog-deploy-866fc6cb54-nkwnj:/usr/share/graylog/data/config#
  946. raylog.
  947. # Default: empty
  948. content_packs_auto_load = grok-patterns.json
  949.  
  950. # For some cluster-related REST requests, the node must query all other nodes in the cluster. This is the maximum number
  951. # of threads available for this. Increase it, if '/cluster/*' requests take long to complete.
  952. # Should be rest_thread_pool_size * average_cluster_size if you have a high number of concurrent users.
  953. proxied_requests_thread_pool_size = 32
  954. root@graylog-deploy-866fc6cb54-nkwnj:/usr/share/graylog/data/config#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement