Guest User

graylog-server.conf

a guest
Dec 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.63 KB | None | 0 0
  1. # If you are running more than one instances of graylog2-server you have to select one of these
  2. # instances as master. The master will perform some periodical tasks that non-masters won't perform.
  3. is_master = true
  4.  
  5. # The auto-generated node ID will be stored in this file and read after restarts. It is a good idea
  6. # to use an absolute file path here if you are starting graylog2-server from init scripts or similar.
  7. node_id_file = /etc/graylog/server/node-id
  8.  
  9. # You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters.
  10. # Generate one by using for example: pwgen -N 1 -s 96
  11. password_secret = test
  12.  
  13. # The default root user is named 'admin'
  14. #root_username = admin
  15.  
  16. # You MUST specify a hash password for the root user (which you only need to initially set up the
  17. # system and in case you lose connectivity to your authentication backend)
  18. # This password cannot be changed using the API or via the web interface. If you need to change it,
  19. # modify it in this file.
  20. # Create one by using for example: echo -n yourpassword | shasum -a 256
  21. # and put the resulting hash value into the following line
  22. root_password_sha2 = test2
  23.  
  24. # The email address of the root user.
  25. # Default is empty
  26. #root_email = ""
  27.  
  28. # The time zone setting of the root user.
  29. # The configured time zone must be parseable by http://www.joda.org/joda-time/apidocs/org/joda/time/DateTimeZone.html#forID-java.lang.String-
  30. # Default is UTC
  31. root_timezone = Europe/Madrid
  32.  
  33. # Set plugin directory here (relative or absolute)
  34. plugin_dir = /usr/share/graylog-server/plugin
  35.  
  36. # REST API listen URI. Must be reachable by other graylog2-server nodes if you run a cluster.
  37. rest_listen_uri = http://127.0.0.1:12900/
  38.  
  39. # REST API transport address. Defaults to the value of rest_listen_uri. Exception: If rest_listen_uri
  40. # is set to a wildcard IP address (0.0.0.0) the first non-loopback IPv4 system address is used.
  41. # If set, his will be promoted in the cluster discovery APIs, so other nodes may try to connect on
  42. # this address and it is used to generate URLs addressing entities in the REST API. (see rest_listen_uri)
  43. # You will need to define this, if your Graylog server is running behind a HTTP proxy that is rewriting
  44. # the scheme, host name or URI.
  45. rest_transport_uri = http://127.0.0.1:12900/
  46.  
  47. # Enable CORS headers for REST API. This is necessary for JS-clients accessing the server directly.
  48. # If these are disabled, modern browsers will not be able to retrieve resources from the server.
  49. # This is disabled by default. Uncomment the next line to enable it.
  50. #rest_enable_cors = true
  51.  
  52. # Enable GZIP support for REST API. This compresses API responses and therefore helps to reduce
  53. # overall round trip times. This is disabled by default. Uncomment the next line to enable it.
  54. #rest_enable_gzip = true
  55.  
  56. # Enable HTTPS support for the REST API. This secures the communication with the REST API with
  57. # TLS to prevent request forgery and eavesdropping. This is disabled by default. Uncomment the
  58. # next line to enable it.
  59. #rest_enable_tls = true
  60.  
  61. # The X.509 certificate file to use for securing the REST API.
  62. #rest_tls_cert_file = /path/to/graylog2.crt
  63.  
  64. # The private key to use for securing the REST API.
  65. #rest_tls_key_file = /path/to/graylog2.key
  66.  
  67. # The password to unlock the private key used for securing the REST API.
  68. #rest_tls_key_password = secret
  69.  
  70. # The maximum size of a single HTTP chunk in bytes.
  71. #rest_max_chunk_size = 8192
  72.  
  73. # The maximum size of the HTTP request headers in bytes.
  74. #rest_max_header_size = 8192
  75.  
  76. # The maximal length of the initial HTTP/1.1 line in bytes.
  77. #rest_max_initial_line_length = 4096
  78.  
  79. # The size of the execution handler thread pool used exclusively for serving the REST API.
  80. #rest_thread_pool_size = 16
  81.  
  82. # The size of the worker thread pool used exclusively for serving the REST API.
  83. #rest_worker_threads_max_pool_size = 16
  84.  
  85. # Embedded Elasticsearch configuration file
  86. # pay attention to the working directory of the server, maybe use an absolute path here
  87. #elasticsearch_config_file = /etc/graylog/server/elasticsearch.yml
  88.  
  89. # Graylog will use multiple indices to store documents in. You can configured the strategy it uses to determine
  90. # when to rotate the currently active write index.
  91. # It supports multiple rotation strategies:
  92. # - "count" of messages per index, use elasticsearch_max_docs_per_index below to configure
  93. # - "size" per index, use elasticsearch_max_size_per_index below to configure
  94. # valid values are "count", "size" and "time", default is "count"
  95. rotation_strategy = count
  96. #rotation_strategy = time
  97.  
  98. # (Approximate) maximum number of documents in an Elasticsearch index before a new index
  99. # is being created, also see no_retention and elasticsearch_max_number_of_indices.
  100. # Configure this if you used 'rotation_strategy = count' above.
  101. elasticsearch_max_docs_per_index = 20000000
  102.  
  103. # (Approximate) maximum size in bytes per Elasticsearch index on disk before a new index is being created, also see
  104. # no_retention and elasticsearch_max_number_of_indices. Default is 1GB.
  105. # Configure this if you used 'rotation_strategy = size' above.
  106. #elasticsearch_max_size_per_index = 1073741824
  107.  
  108. # (Approximate) maximum time before a new Elasticsearch index is being created, also see
  109. # no_retention and elasticsearch_max_number_of_indices. Default is 1 day.
  110. # Configure this if you used 'rotation_strategy = time' above.
  111. # Please note that this rotation period does not look at the time specified in the received messages, but is
  112. # using the real clock value to decide when to rotate the index!
  113. # Specify the time using a duration and a suffix indicating which unit you want:
  114. # 1w = 1 week
  115. # 1d = 1 day
  116. # 12h = 12 hours
  117. # Permitted suffixes are: d for day, h for hour, m for minute, s for second.
  118.  
  119. elasticsearch_max_time_per_index = 1d
  120.  
  121. # Disable checking the version of Elasticsearch for being compatible with this Graylog release.
  122. # WARNING: Using Graylog with unsupported and untested versions of Elasticsearch may lead to data loss!
  123. #elasticsearch_disable_version_check = true
  124.  
  125. # Disable message retention on this node, i. e. disable Elasticsearch index rotation.
  126. #no_retention = false
  127.  
  128. # How many indices do you want to keep?
  129. elasticsearch_max_number_of_indices = 20
  130.  
  131. # Decide what happens with the oldest indices when the maximum number of indices is reached.
  132. # The following strategies are availble:
  133. # - delete # Deletes the index completely (Default)
  134. # - close # Closes the index and hides it from the system. Can be re-opened later.
  135. retention_strategy = delete
  136.  
  137. # How many Elasticsearch shards and replicas should be used per index? Note that this only applies to newly created indices.
  138. elasticsearch_shards = 1
  139. elasticsearch_replicas = 0
  140.  
  141. # Prefix for all Elasticsearch indices and index aliases managed by Graylog.
  142. elasticsearch_index_prefix = graylog2
  143.  
  144. # Do you want to allow searches with leading wildcards? This can be extremely resource hungry and should only
  145. # be enabled with care. See also: https://www.graylog.org/documentation/general/queries/
  146. allow_leading_wildcard_searches = false
  147.  
  148. # Do you want to allow searches to be highlighted? Depending on the size of your messages this can be memory hungry and
  149. # should only be enabled after making sure your Elasticsearch cluster has enough memory.
  150. allow_highlighting = false
  151.  
  152. # settings to be passed to elasticsearch's client (overriding those in the provided elasticsearch_config_file)
  153. # all these
  154. # this must be the same as for your Elasticsearch cluster
  155. #elasticsearch_cluster_name = graylog2
  156.  
  157. # you could also leave this out, but makes it easier to identify the graylog2 client instance
  158. #elasticsearch_node_name = graylog2-server
  159.  
  160. # we don't want the graylog2 server to store any data, or be master node
  161. #elasticsearch_node_master = false
  162. #elasticsearch_node_data = false
  163.  
  164. # use a different port if you run multiple Elasticsearch nodes on one machine
  165. #elasticsearch_transport_tcp_port = 9350
  166.  
  167. # we don't need to run the embedded HTTP server here
  168. #elasticsearch_http_enabled = false
  169.  
  170. #elasticsearch_discovery_zen_ping_multicast_enabled = false
  171. elasticsearch_discovery_zen_ping_unicast_hosts = 127.0.0.1:9300
  172.  
  173. # Change the following setting if you are running into problems with timeouts during Elasticsearch cluster discovery.
  174. # The setting is specified in milliseconds, the default is 5000ms (5 seconds).
  175. #elasticsearch_cluster_discovery_timeout = 5000
  176.  
  177. # the following settings allow to change the bind addresses for the Elasticsearch client in graylog2
  178. # these settings are empty by default, letting Elasticsearch choose automatically,
  179. # override them here or in the 'elasticsearch_config_file' if you need to bind to a special address
  180. # refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/modules-network.html
  181. # for special values here
  182. #elasticsearch_network_host =
  183. #elasticsearch_network_bind_host =
  184. #elasticsearch_network_publish_host =
  185.  
  186. # The total amount of time discovery will look for other Elasticsearch nodes in the cluster
  187. # before giving up and declaring the current node master.
  188. #elasticsearch_discovery_initial_state_timeout = 3s
  189.  
  190. # Analyzer (tokenizer) to use for message and full_message field. The "standard" filter usually is a good idea.
  191. # All supported analyzers are: standard, simple, whitespace, stop, keyword, pattern, language, snowball, custom
  192. # Elasticsearch documentation: http://www.elasticsearch.org/guide/reference/index-modules/analysis/
  193. # Note that this setting only takes effect on newly created indices.
  194. elasticsearch_analyzer = standard
  195.  
  196. # Store message timestamps as doc values in Elasticsearch. This will improve memory the consumption of
  197. # Elasticsearch at the cost of some performance at indexing time and increased index size.
  198. # See http://www.elastic.co/guide/en/elasticsearch/guide/master/doc-values.html for details.
  199. #elasticsearch_store_timestamps_as_doc_values = true
  200.  
  201. # Batch size for the Elasticsearch output. This is the maximum (!) number of messages the Elasticsearch output
  202. # module will get at once and write to Elasticsearch in a batch call. If the configured batch size has not been
  203. # reached within output_flush_interval seconds, everything that is available will be flushed at once. Remember
  204. # that every outputbuffer processor manages its own batch and performs its own batch write calls.
  205. # ("outputbuffer_processors" variable)
  206. output_batch_size = 500
  207.  
  208. # Flush interval (in seconds) for the Elasticsearch output. This is the maximum amount of time between two
  209. # batches of messages written to Elasticsearch. It is only effective at all if your minimum number of messages
  210. # for this time period is less than output_batch_size * outputbuffer_processors.
  211. output_flush_interval = 1
  212.  
  213. # As stream outputs are loaded only on demand, an output which is failing to initialize will be tried over and
  214. # over again. To prevent this, the following configuration options define after how many faults an output will
  215. # not be tried again for an also configurable amount of seconds.
  216. output_fault_count_threshold = 5
  217. output_fault_penalty_seconds = 30
  218.  
  219. # The number of parallel running processors.
  220. # Raise this number if your buffers are filling up.
  221. processbuffer_processors = 5
  222. outputbuffer_processors = 3
  223.  
  224. #outputbuffer_processor_keep_alive_time = 5000
  225. #outputbuffer_processor_threads_core_pool_size = 3
  226. #outputbuffer_processor_threads_max_pool_size = 30
  227.  
  228. # UDP receive buffer size for all message inputs (e. g. SyslogUDPInput).
  229. #udp_recvbuffer_sizes = 1048576
  230.  
  231. # Wait strategy describing how buffer processors wait on a cursor sequence. (default: sleeping)
  232. # Possible types:
  233. # - yielding
  234. # Compromise between performance and CPU usage.
  235. # - sleeping
  236. # Compromise between performance and CPU usage. Latency spikes can occur after quiet periods.
  237. # - blocking
  238. # High throughput, low latency, higher CPU usage.
  239. # - busy_spinning
  240. # Avoids syscalls which could introduce latency jitter. Best when threads can be bound to specific CPU cores.
  241. processor_wait_strategy = blocking
  242.  
  243. # Size of internal ring buffers. Raise this if raising outputbuffer_processors does not help anymore.
  244. # For optimum performance your LogMessage objects in the ring buffer should fit in your CPU L3 cache.
  245. # Start server with --statistics flag to see buffer utilization.
  246. # Must be a power of 2. (512, 1024, 2048, ...)
  247. ring_size = 65536
  248.  
  249. inputbuffer_ring_size = 65536
  250. inputbuffer_processors = 2
  251. inputbuffer_wait_strategy = blocking
  252.  
  253. # Enable the disk based message journal.
  254. message_journal_enabled = true
  255.  
  256. # The directory which will be used to store the message journal. The directory must me exclusively used by Graylog and
  257. # must not contain any other files than the ones created by Graylog itself.
  258. message_journal_dir = /var/lib/graylog-server/journal
  259.  
  260. # Journal hold messages before they could be written to Elasticsearch.
  261. # For a maximum of 12 hours or 5 GB whichever happens first.
  262. # During normal operation the journal will be smaller.
  263. #message_journal_max_age = 12h
  264. #message_journal_max_size = 5gb
  265.  
  266. #message_journal_flush_age = 1m
  267. #message_journal_flush_interval = 1000000
  268. #message_journal_segment_age = 1h
  269. #message_journal_segment_size = 100mb
  270.  
  271. # Number of threads used exclusively for dispatching internal events. Default is 2.
  272. #async_eventbus_processors = 2
  273.  
  274. # EXPERIMENTAL: Dead Letters
  275. # Every failed indexing attempt is logged by default and made visible in the web-interface. You can enable
  276. # the experimental dead letters feature to write every message that was not successfully indexed into the
  277. # MongoDB "dead_letters" collection to make sure that you never lose a message. The actual writing of dead
  278. # letter should work fine already but it is not heavily tested yet and will get more features in future
  279. # releases.
  280. dead_letters_enabled = false
  281.  
  282. # How many seconds to wait between marking node as DEAD for possible load balancers and starting the actual
  283. # shutdown process. Set to 0 if you have no status checking load balancers in front.
  284. lb_recognition_period_seconds = 3
  285.  
  286. # Every message is matched against the configured streams and it can happen that a stream contains rules which
  287. # take an unusual amount of time to run, for example if its using regular expressions that perform excessive backtracking.
  288. # This will impact the processing of the entire server. To keep such misbehaving stream rules from impacting other
  289. # streams, Graylog limits the execution time for each stream.
  290. # The default values are noted below, the timeout is in milliseconds.
  291. # If the stream matching for one stream took longer than the timeout value, and this happened more than "max_faults" times
  292. # that stream is disabled and a notification is shown in the web interface.
  293. #stream_processing_timeout = 2000
  294. #stream_processing_max_faults = 3
  295.  
  296. # Length of the interval in seconds in which the alert conditions for all streams should be checked
  297. # and alarms are being sent.
  298. #alert_check_interval = 60
  299.  
  300. # Since 0.21 the graylog2 server supports pluggable output modules. This means a single message can be written to multiple
  301. # outputs. The next setting defines the timeout for a single output module, including the default output module where all
  302. # messages end up.
  303. #
  304. # Time in milliseconds to wait for all message outputs to finish writing a single message.
  305. #output_module_timeout = 10000
  306.  
  307. # Time in milliseconds after which a detected stale master node is being rechecked on startup.
  308. #stale_master_timeout = 2000
  309.  
  310. # Time in milliseconds which Graylog is waiting for all threads to stop on shutdown.
  311. #shutdown_timeout = 30000
  312.  
  313. # MongoDB connection string
  314. # See http://docs.mongodb.org/manual/reference/connection-string/ for details
  315. mongodb_uri = mongodb://localhost/graylog2
  316.  
  317. # Authenticate against the MongoDB server
  318. #mongodb_uri = mongodb://grayloguser:secret@localhost:27017/graylog2
  319.  
  320. # Use a replica set instead of a single host
  321. #mongodb_uri = mongodb://grayloguser:secret@localhost:27017,localhost:27018,localhost:27019/graylog2
  322.  
  323. # Increase this value according to the maximum connections your MongoDB server can handle from a single client
  324. # if you encounter MongoDB connection problems.
  325. mongodb_max_connections = 100
  326.  
  327. # Number of threads allowed to be blocked by MongoDB connections multiplier. Default: 5
  328. # If mongodb_max_connections is 100, and mongodb_threads_allowed_to_block_multiplier is 5,
  329. # then 500 threads can block. More than that and an exception will be thrown.
  330. # http://api.mongodb.org/java/current/com/mongodb/MongoOptions.html#threadsAllowedToBlockForConnectionMultiplier
  331. mongodb_threads_allowed_to_block_multiplier = 5
  332.  
  333. # Drools Rule File (Use to rewrite incoming log messages)
  334. # See: https://www.graylog.org/documentation/general/rewriting/
  335. #rules_file = /etc/graylog/server/rules.drl
  336.  
  337. ...........
Advertisement
Add Comment
Please, Sign In to add comment