Guest User

1.3.4

a guest
Nov 2nd, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.45 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/graylog2-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 -s 96
  11. password_secret = ...
  12. # the default root user is named 'admin'
  13. # root_username = admin
  14. # You MUST specify a hash password for the root user (which you only need to initially set up the
  15. # system and in case you lose connectivity to your authentication backend)
  16. # This password cannot be changed using the API or via the web interface. If you need to change it,
  17. # modify it in this file.
  18. # Create one by using for example: echo -n usnerStd | shasum -a 256
  19. # and put the resulting hash value into the following line
  20. root_password_sha2 = ...
  21.  
  22. # The email address of the root user.
  23. # Default is empty
  24. #root_email = ""
  25.  
  26. # The time zone setting of the root user.
  27. # Default is UTC
  28. #root_timezone = UTC
  29.  
  30. # Set plugin directory here (relative or absolute)
  31. plugin_dir = plugin
  32.  
  33. # REST API listen URI. Must be reachable by other graylog2-server nodes if you run a cluster.
  34. rest_listen_uri = http://10.0.0.149:12900/
  35. # REST API transport address. Defaults to first non-loopback IPv4 system address and port 12900.
  36. # This will be promoted in the cluster discovery APIs and other nodes may try to connect on this
  37. # address. (see rest_listen_uri)
  38. rest_transport_uri = http://10.0.0.149:12900/
  39.  
  40. # Enable CORS headers for REST api. This is necessary for JS-clients accessing the server directly.
  41. # If these are disabled, modern browsers will not be able to retrieve resources from the server.
  42. # This is disabled by default. Uncomment the next line to enable it.
  43. rest_enable_cors = true
  44.  
  45. # Enable GZIP support for REST api. This compresses API responses and therefore helps to reduce
  46. # overall round trip times. This is disabled by default. Uncomment the next line to enable it.
  47. rest_enable_gzip = true
  48.  
  49. # Enable HTTPS support for the REST API. This secures the communication with the REST API with
  50. # TLS to prevent request forgery and eavesdropping. This is disabled by default. Uncomment the
  51. # next line to enable it.
  52. #rest_enable_tls = true
  53.  
  54. # The X.509 certificate file to use for securing the REST API.
  55. #rest_tls_cert_file = /path/to/graylog2.crt
  56.  
  57. # The private key to use for securing the REST API.
  58. #rest_tls_key_file = /path/to/graylog2.key
  59.  
  60. # The password to unlock the private key used for securing the REST API.
  61. #rest_tls_key_password = secret
  62.  
  63. # The maximum size of a single HTTP chunk in bytes.
  64. #rest_max_chunk_size = 8192
  65.  
  66. # The maximum size of the HTTP request headers in bytes.
  67. #rest_max_header_size = 8192
  68.  
  69. # The maximal length of the initial HTTP/1.1 line in bytes.
  70. #rest_max_initial_line_length = 4096
  71.  
  72. # The size of the execution handler thread pool used exclusively for serving the REST API.
  73. #rest_thread_pool_size = 16
  74.  
  75. # The size of the worker thread pool used exclusively for serving the REST API.
  76. #rest_worker_threads_max_pool_size = 16
  77. # Embedded elasticsearch configuration file
  78. # pay attention to the working directory of the server, maybe use an absolute path here
  79. #elasticsearch_config_file = /opt/elasticsearch-1.4/config/elasticsearch.yml
  80.  
  81. # Graylog2 will use multiple indices to store documents in. You can configured the strategy it uses to determine
  82. # when to rotate the currently active write index.
  83. # It supports multiple rotation strategies:
  84. # - "count" of messages per index, use elasticsearch_max_docs_per_index below to configure
  85. # - "size" per index, use elasticsearch_max_size_per_index below to configure
  86. # valid values are "count", "size" and "time", default is "count"
  87. rotation_strategy = size
  88.  
  89. # (Approximate) maximum number of documents in an Elasticsearch index before a new index
  90. # is being created, also see no_retention and elasticsearch_max_number_of_indices.
  91. # Configure this if you used 'rotation_strategy = count' above.
  92. #elasticsearch_max_docs_per_index = 100000000
  93.  
  94. # (Approximate) maximum size in bytes per Elasticsearch index on disk before a new index is being created, also see
  95. # no_retention and elasticsearch_max_number_of_indices. Default is 1GB.
  96. # Configure this if you used 'rotation_strategy = size' above.
  97. elasticsearch_max_size_per_index = 42949672960
  98.  
  99. # (Approximate) maximum time before a new Elasticsearch index is being created, also see
  100. # no_retention and elasticsearch_max_number_of_indices. Default is 1 day.
  101. # Configure this if you used 'rotation_strategy = time' above.
  102. # Please note that this rotation period does not look at the time specified in the received messages, but is
  103. # using the real clock value to decide when to rotate the index!
  104. # Specify the time using a duration and a suffix indicating which unit you want:
  105. # 1w = 1 week
  106. # 1d = 1 day
  107. # 12h = 12 hours
  108. # Permitted suffixes are: d for day, h for hour, m for minute, s for second.
  109. #elasticsearch_max_time_per_index = 1d
  110.  
  111. # Disable checking the version of Elasticsearch for being compatible with this Graylog2 release.
  112. # WARNING: Using Graylog2 with unsupported and untested versions of Elasticsearch may lead to data loss!
  113. #elasticsearch_disable_version_check = true
  114. # Disable message retention on this node, i. e. disable Elasticsearch index rotation.
  115. #no_retention = false
  116. # How many indices do you want to keep?
  117. # elasticsearch_max_number_of_indices*elasticsearch_max_docs_per_index=total number of messages in your setup
  118. elasticsearch_max_number_of_indices = 7
  119.  
  120. # Decide what happens with the oldest indices when the maximum number of indices is reached.
  121. # The following strategies are availble:
  122. # - delete # Deletes the index completely (Default)
  123. # - close # Closes the index and hides it from the system. Can be re-opened later.
  124. retention_strategy = delete
  125.  
  126. # How many ElasticSearch shards and replicas should be used per index? Note that this only applies to newly created indices.
  127. elasticsearch_shards = 1
  128. elasticsearch_replicas = 0
  129.  
  130. elasticsearch_index_prefix = graylog2b
  131.  
  132. # Do you want to allow searches with leading wildcards? This can be extremely resource hungry and should only
  133. # be enabled with care. See also: https://www.graylog.org/documentation/general/queries/
  134. allow_leading_wildcard_searches = true
  135.  
  136. # Do you want to allow searches to be highlighted? Depending on the size of your messages this can be memory hungry and
  137. # should only be enabled after making sure your elasticsearch cluster has enough memory.
  138. allow_highlighting = true
  139.  
  140. # settings to be passed to elasticsearch's client (overriding those in the provided elasticsearch_config_file)
  141. # all these
  142. # this must be the same as for your elasticsearch cluster
  143. elasticsearch_cluster_name = graylog2b
  144.  
  145. # you could also leave this out, but makes it easier to identify the graylog2 client instance
  146. elasticsearch_node_name = graylog2b-server
  147.  
  148. # we don't want the graylog2 server to store any data, or be master node
  149. elasticsearch_node_master = false
  150. elasticsearch_node_data = false
  151.  
  152. # use a different port if you run multiple elasticsearch nodes on one machine
  153. #elasticsearch_transport_tcp_port = 9350
  154. # we don't need to run the embedded HTTP server here
  155. #elasticsearch_http_enabled = false
  156.  
  157. elasticsearch_discovery_zen_ping_multicast_enabled = false
  158. elasticsearch_discovery_zen_ping_unicast_hosts = 10.0.0.29:9300
  159.  
  160. # Change the following setting if you are running into problems with timeouts during Elasticsearch cluster discovery.
  161. # The setting is specified in milliseconds, the default is 5000ms (5 seconds).
  162. elasticsearch_cluster_discovery_timeout = 50000
  163. # the following settings allow to change the bind addresses for the elasticsearch client in graylog2
  164. # these settings are empty by default, letting elasticsearch choose automatically,
  165. # override them here or in the 'elasticsearch_config_file' if you need to bind to a special address
  166. # refer to http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/modules-network.html for special values here
  167. # elasticsearch_network_host = 10.0.0.29
  168. # elasticsearch_network_bind_host = 10.0.0.29
  169. # elasticsearch_network_publish_host = 10.0.0.29
  170.  
  171. # The total amount of time discovery will look for other Elasticsearch nodes in the cluster
  172. # before giving up and declaring the current node master.
  173. elasticsearch_discovery_initial_state_timeout = 30s
  174. # Analyzer (tokenizer) to use for message and full_message field. The "standard" filter usually is a good idea.
  175. # All supported analyzers are: standard, simple, whitespace, stop, keyword, pattern, language, snowball, custom
  176. # ElasticSearch documentation: http://www.elasticsearch.org/guide/reference/index-modules/analysis/
  177. # Note that this setting only takes effect on newly created indices.
  178. elasticsearch_analyzer = standard
  179.  
  180. # Global request timeout for Elasticsearch requests (e. g. during search, index creation, or index time-range
  181. # calculations) based on a best-effort to restrict the runtime of Elasticsearch operations.
  182. # Default: 1m
  183. elasticsearch_request_timeout = 3m
  184.  
  185. # Batch size for all outputs. This is the maximum (!) number of messages an output module will get at once.
  186. # For example, if this is set to 5000 (default), the ElasticSearch Output will not index more than 5000 messages
  187. # at once. After that index operation is performed, the next batch will be indexed. If there is only 1 message
  188. # waiting, it will only index that single message. It is important to raise this parameter if you send in so
  189. # many messages that it is not enough to index 5000 messages at once. (Only at *really* high message rates)
  190. # module will get at once and write to Elasticsearch in a batch call. If the configured batch size has not been
  191. # reached within output_flush_interval seconds, everything that is available will be flushed at once. Remember
  192. # that every outputbuffer processor manages its own batch and performs its own batch write calls.
  193. # ("outputbuffer_processors" variable)
  194. output_batch_size = 1000
  195. # Flush interval (in seconds) for the Elasticsearch output. This is the maximum amount of time between two
  196. # batches of messages written to Elasticsearch. It is only effective at all if your minimum number of messages
  197. # for this time period is less than output_batch_size * outputbuffer_processors.
  198. output_flush_interval = 1
  199.  
  200. # As stream outputs are loaded only on demand, an output which is failing to initialize will be tried over and
  201. # over again. To prevent this, the following configuration options define after how many faults an output will
  202. # not be tried again for an also configurable amount of seconds.
  203. output_fault_count_threshold = 5
  204. output_fault_penalty_seconds = 30
  205. # The number of parallel running processors.
  206. # Raise this number if your buffers are filling up.
  207. processbuffer_processors = 5
  208. outputbuffer_processors = 3
  209. #outputbuffer_processor_keep_alive_time = 5000
  210. #outputbuffer_processor_threads_core_pool_size = 3
  211. #outputbuffer_processor_threads_max_pool_size = 30
  212. #output_module_timeout = 10000
  213.  
  214. # UDP receive buffer size for all message inputs (e. g. SyslogUDPInput).
  215. #udp_recvbuffer_sizes = 1048576
  216.  
  217. # Wait strategy describing how buffer processors wait on a cursor sequence. (default: sleeping)
  218. # Possible types:
  219. # - yielding
  220. # Compromise between performance and CPU usage.
  221. # - sleeping
  222. # Compromise between performance and CPU usage. Latency spikes can occur after quiet periods.
  223. # - blocking
  224. # High throughput, low latency, higher CPU usage.
  225. # - busy_spinning
  226. # Avoids syscalls which could introduce latency jitter. Best when threads can be bound to specific CPU cores.
  227. processor_wait_strategy = blocking
  228.  
  229. # Size of internal ring buffers. Raise this if raising outputbuffer_processors does not help anymore.
  230. # For optimum performance your LogMessage objects in the ring buffer should fit in your CPU L3 cache.
  231. # Start server with --statistics flag to see buffer utilization.
  232. # Must be a power of 2. (512, 1024, 2048, ...)
  233. ring_size = 65536
  234. inputbuffer_ring_size = 65536
  235. inputbuffer_processors = 2
  236. inputbuffer_wait_strategy = blocking
  237.  
  238. # Enable the disk based message journal.
  239. message_journal_enabled = true
  240.  
  241. # The directory which will be used to store the message journal. The directory must me exclusively used by Graylog and
  242. # must not contain any other files than the ones created by Graylog itself.
  243. message_journal_dir = /logs/journal
  244.  
  245. # Journal hold messages before they could be written to Elasticsearch.
  246. # For a maximum of 12 hours or 5 GB whichever happens first.
  247. # During normal operation the journal will be smaller.
  248. message_journal_max_age = 12h
  249. message_journal_max_size = 10gb
  250.  
  251. message_journal_flush_age = 1m
  252. message_journal_flush_interval = 100000
  253. #message_journal_segment_age = 1h
  254. #message_journal_segment_size = 100mb
  255. # Number of threads used exclusively for dispatching internal events. Default is 2.
  256. #async_eventbus_processors = 2
  257.  
  258. # EXPERIMENTAL: Dead Letters
  259. # Every failed indexing attempt is logged by default and made visible in the web-interface. You can enable
  260. # the experimental dead letters feature to write every message that was not successfully indexed into the
  261. # MongoDB "dead_letters" collection to make sure that you never lose a message. The actual writing of dead
  262. # letter should work fine already but it is not heavily tested yet and will get more features in future
  263. # releases.
  264. dead_letters_enabled = false
  265.  
  266. # How many seconds to wait between marking node as DEAD for possible load balancers and starting the actual
  267. # shutdown process. Set to 0 if you have no status checking load balancers in front.
  268. lb_recognition_period_seconds = 0
  269.  
  270. # Every message is matched against the configured streams and it can happen that a stream contains rules which
  271. # take an unusual amount of time to run, for example if its using regular expressions that perform excessive backtracking.
  272. # This will impact the processing of the entire server. To keep such misbehaving stream rules from impacting other
  273. # streams, Graylog2 limits the execution time for each stream.
  274. # The default values are noted below, the timeout is in milliseconds.
  275. # If the stream matching for one stream took longer than the timeout value, and this happened more than "max_faults" times
  276. # that stream is disabled and a notification is shown in the web interface.
  277. stream_processing_timeout = 50000
  278. stream_processing_max_faults = 20
  279. # Length of the interval in seconds in which the alert conditions for all streams should be checked
  280. # and alarms are being sent.
  281. #alert_check_interval = 60
  282.  
  283. # Since 0.21 the graylog2 server supports pluggable output modules. This means a single message can be written to multiple
  284. # outputs. The next setting defines the timeout for a single output module, including the default output module where all
  285. # messages end up. This setting is specified in milliseconds.
  286.  
  287. # Time in milliseconds to wait for all message outputs to finish writing a single message.
  288. #output_module_timeout = 10000
  289.  
  290. # Time in milliseconds after which a detected stale master node is being rechecked on startup.
  291. #stale_master_timeout = 2000
  292.  
  293. # Time in milliseconds which Graylog2 is waiting for all threads to stop on shutdown.
  294. #shutdown_timeout = 30000
  295. # MongoDB Configuration
  296. mongodb_useauth = false
  297. #mongodb_user = grayloguser
  298. #mongodb_password = 123
  299. mongodb_host = 127.0.0.1
  300. #mongodb_replica_set = localhost:27017,localhost:27018,localhost:27019
  301. mongodb_database = graylog2
  302. mongodb_port = 27017
  303.  
  304. # MongoDB connection string
  305. # See http://docs.mongodb.org/manual/reference/connection-string/ for details
  306. mongodb_uri = mongodb://localhost/graylog2
  307.  
  308. # Authenticate against the MongoDB server
  309. #mongodb_uri = mongodb://grayloguser:secret@localhost:27017/graylog2
  310.  
  311. # Use a replica set instead of a single host
  312. #mongodb_uri = mongodb://grayloguser:secret@localhost:27017,localhost:27018,localhost:27019/graylog2
  313.  
  314. # Increase this value according to the maximum connections your MongoDB server can handle from a single client
  315. # if you encounter MongoDB connection problems.
  316. # Raise this according to the maximum connections your MongoDB server can handle if you encounter MongoDB connection problems.
  317. mongodb_max_connections = 100
  318.  
  319. # Number of threads allowed to be blocked by MongoDB connections multiplier. Default: 5
  320. # If mongodb_max_connections is 100, and mongodb_threads_allowed_to_block_multiplier is 5, then 500 threads can block. More than that and an exception will be thrown.
  321. # http://api.mongodb.org/java/current/com/mongodb/MongoOptions.html#threadsAllowedToBlockForConnectionMultiplier
  322. mongodb_threads_allowed_to_block_multiplier = 5
  323.  
  324. # Drools Rule File (Use to rewrite incoming log messages)
  325. # See: http://support.torch.sh/help/kb/graylog2-server/custom-message-rewritingprocessing
  326. # rules_file = /etc/graylog2.drl
  327.  
  328. # Email transport
  329. transport_email_enabled = true
  330. transport_email_protocol = smtp
  331. transport_email_hostname = 10.0.0.166
  332. transport_email_port = 25
  333. transport_email_use_auth = false
  334. transport_email_use_tls = false
  335. transport_email_use_ssl = false
  336. transport_email_auth_username =
  337. transport_email_auth_password =
  338. transport_email_subject_prefix = [graylog2]
  339. transport_email_from_name = Graylog2
  340. transport_email_from_email = [email protected]
  341.  
  342. # Specify and uncomment this if you want to include links to the stream in your stream alert mails.
  343. # This should define the fully qualified base url to your web interface exactly the same way as it is accessed by your users.
  344. #
  345. transport_email_web_interface_url = https://10.0.0.149:9443
  346.  
  347. # The default connect timeout for outgoing HTTP connections.
  348.  
  349. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  350. # Default: 5s
  351. #http_connect_timeout = 5s
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358. # The default read timeout for outgoing HTTP connections.
  359. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  360. # Default: 10s
  361. #http_read_timeout = 10s
  362.  
  363.  
  364.  
  365. # The default write timeout for outgoing HTTP connections.
  366. # Values must be a positive duration (and between 1 and 2147483647 when converted to milliseconds).
  367. # Default: 10s
  368. #http_write_timeout = 10s
  369. http_proxy_uri = http://10.0.0.2:8000
  370.  
  371. # Set time to NOW if parsing date/time from syslog message failed instead of rejecting it?
  372. allow_override_syslog_date = true
  373. # Switch to enable/disable the off-heap message cache. Stores cached messages in the spool directory if set to true.
  374. # Stores the messages in an in-memory data structure if set to false.
  375. message_cache_off_heap = true
  376.  
  377. # Directory for the off-heap message cache data. (absolute or relative)
  378. message_cache_spool_dir = /logs
  379.  
  380. # The commit interval for the message cache in milliseconds. Only affects message cache implementations that need to commit data.
  381. message_cache_commit_interval = 1000
  382.  
  383. # When more messages are coming in as we can process, incoming messages will be cached in memory until
  384. # they are ready to be processed. Per default this data structure is unbounded, so in situations of
  385. # constant high load, it will grow endlessly until all allocatable memory has been consumed and the
  386. # process dies.
  387. # To prevent this, the next setting allows you to define an upper bound for this memory cache, if the
  388. # number of messages in the cache has reached this limit, incoming messages will be dropped until it
  389. # has shrunk again.
  390. #
  391. # The default is 0, which means no upper bound.
  392. #
  393. input_cache_max_size = 10000
  394. # Disable the optimization of Elasticsearch indices after index cycling. This may take some load from Elasticsearch
  395. # on heavily used systems with large indices, but it will decrease search performance. The default is to optimize
  396. # cycled indices.
  397. #disable_index_optimization = false
  398.  
  399. # Optimize the index down to <= index_optimization_max_num_segments. A higher number may take some load from Elasticsearch
  400. # on heavily used systems with large indices, but it will decrease search performance. The default is 1.
  401. #index_optimization_max_num_segments = 1
  402.  
  403. # Disable the index range calculation on all open/available indices and only calculate the range for the latest
  404. # index. This may speed up index cycling on systems with large indices but it might lead to wrong search results
  405. # in regard to the time range of the messages (i. e. messages within a certain range may not be found). The default
  406. # is to calculate the time range on all open/available indices.
  407. #disable_index_range_calculation = false
  408.  
  409. # Disable the output cache used to buffer messages when the backend storage, e. g. Elasticsearch or any other output
  410. # plugin is too slow to handle the amount of messages being indexed. It is recommended to disable the output cache
  411. # when using inputs with proper backpressure handling, e. g. Graylog2 radio, AMQP, or Kafka. The default is having
  412. # the output cache disabled.
  413. #disable_output_cache = true
  414.  
  415. # The threshold of the garbage collection runs. If GC runs take longer than this threshold, a system notification
  416. # will be generated to warn the administrator about possible problems with the system. Default is 1 second.
  417. #gc_warning_threshold = 1s
  418. # Connection timeout for a configured LDAP server (e. g. ActiveDirectory) in milliseconds.
  419. #ldap_connection_timeout = 2000
  420.  
  421. # Version checks settings. All timeouts are in milliseconds.
  422. #versionchecks = true
  423. #versionchecks_uri = http://versioncheck.torch.sh/check
  424. #versionchecks_connection_request_timeout = 10000
  425. #versionchecks_connect_timeout = 10000
  426. #versionchecks_socket_timeout = 10000
  427.  
  428. # https://github.com/bazhenov/groovy-shell-server
  429. #groovy_shell_enable = false
  430. #groovy_shell_port = 6789
  431.  
  432. # Enable collection of Graylog2-related metrics into MongoDB
  433. #enable_metrics_collection = false
  434.  
  435. # Disable the use of SIGAR for collecting system stats
  436. #disable_sigar = false
  437.  
  438. # TELEMETRY
  439. # Enable publishing Telemetry data
  440. #telemetry_enabled = true
  441.  
  442. # Base URL of the Telemetry service
  443. #telemetry_url = https://telemetry-in.graylog.com/submit/
  444.  
  445. # Authentication token for the Telemetry service
  446. #telemetry_token =
  447.  
  448. # How often the Telemetry data should be reported
  449. #telemetry_report_interval = 1m
  450.  
  451. # Number of Telemetry data sets to store locally if the connection to the Telemetry service fails
  452. #telemetry_max_queue_size = 10
  453.  
  454. # TTL for Telemetry data in local cache
  455. #telemetry_cache_timeout = 1m
  456.  
  457. # Connect timeout for HTTP connections
  458. #telemetry_service_connect_timeout = 1s
  459.  
  460. # Write timeout for HTTP connections
  461. #telemetry_service_write_timeout = 5s
  462.  
  463. # Read timeout for HTTP connections
  464. #telemetry_service_read_timeout = 5s
  465.  
  466. # Amount of time of inactivity after which collectors are flagged as inactive (Default: 1 minute)
  467. #collector_inactive_threshold = 1m
  468.  
  469.  
  470.  
  471. # Amount of time after which inactive collectors are purged (Default: 14 days)
  472. #collector_expiration_threshold = 14d
  473.  
  474.  
  475.  
  476. # The default cache time for dashboard widgets. (Default: 10 seconds, minimum: 1 second)
  477. #dashboard_widget_default_cache_time = 10s
  478. # Automatically load content packs in "content_packs_dir" on the first start of Graylog.
  479. #content_packs_loader_enabled = true
  480.  
  481. # The directory which contains content packs which should be loaded on the first start of Graylog.
  482. #content_packs_dir = data/contentpacks
  483.  
  484. # A comma-separated list of content packs (files in "content_packs_dir") which should be applied on
  485. # the first start of Graylog.
  486. content_packs_auto_load = grok-patterns.json
Advertisement
Add Comment
Please, Sign In to add comment