Commit 1be7dc52 by Adam Palay

add splunk forwarding to neo4j

parent f97e4b7d
...@@ -13,3 +13,5 @@ ...@@ -13,3 +13,5 @@
- coursegraph - coursegraph
# - aws # - aws
- neo4j - neo4j
- role: splunkforwarder
when: COMMON_ENABLE_SPLUNKFORWARDER
...@@ -27,6 +27,7 @@ neo4j_https_port: 7473 # default in package is 7473 ...@@ -27,6 +27,7 @@ neo4j_https_port: 7473 # default in package is 7473
neo4j_http_port: 7474 # default in package is 7474 neo4j_http_port: 7474 # default in package is 7474
neo4j_listen_address: "0.0.0.0" neo4j_listen_address: "0.0.0.0"
neo4j_heap_max_size: "3000" neo4j_heap_max_size: "3000"
neo4j_log_dir: "/var/log/neo4j"
# Properties file settings # Properties file settings
neo4j_https_settings_key: "dbms.connector.https.address" neo4j_https_settings_key: "dbms.connector.https.address"
......
...@@ -72,9 +72,29 @@ ...@@ -72,9 +72,29 @@
- install - install
- install:configuration - install:configuration
- name: set log dir for neo4j
lineinfile:
create: yes
dest: "{{ neo4j_server_config_file }}"
regexp: "dbms.directories.logs="
line: "dbms.directories.logs={{ neo4j_log_dir }}"
tags:
- install
- install:configuration
- name: Create neo4j logging dir
file:
path: "{{ neo4j_log_dir }}"
state: directory
owner: neo4j
mode: "0755"
tags:
- install
- install:base
- name: restart neo4j - name: restart neo4j
service: service:
name: neo4j name: neo4j
state: restarted state: restarted
tags: tags:
- manage - manage
......
...@@ -76,6 +76,10 @@ SPLUNKFORWARDER_LOG_ITEMS: ...@@ -76,6 +76,10 @@ SPLUNKFORWARDER_LOG_ITEMS:
recursive: true recursive: true
index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}' index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}'
sourcetype: 'rabbitmq' sourcetype: 'rabbitmq'
- source: '/var/log/neo4j'
recursive: true
index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}'
sourcetype: 'neo4j'
# #
# OS packages # OS packages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment