-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3475570 by valthebald, mkalkbrenner: Solr-based alternative to…
… dblog
- Loading branch information
1 parent
c575286
commit 8ece99c
Showing
20 changed files
with
2,892 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Search API Solr Log | ||
|
||
This module provides an alternative to the DB Logger of Drupal Core. | ||
|
||
After enabling the module, visit `/admin/config/search/search-api/server/search_api_solr_log_server/editSolr` and | ||
configure the connection according to your needs. | ||
|
||
Note, if you don't have a dedicated log server, you can use the identical settings of an existing server. | ||
But it is important to activate "Advanced / Retrieve result data from Solr". |
160 changes: 160 additions & 0 deletions
160
modules/search_api_solr_log/config/install/search_api.index.search_api_solr_log.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- search_api.server.search_api_solr_log_server | ||
module: | ||
- search_api_solr | ||
third_party_settings: | ||
search_api_solr: | ||
finalize: false | ||
commit_before_finalize: false | ||
commit_after_finalize: false | ||
debug_finalize: false | ||
highlighter: | ||
maxAnalyzedChars: 51200 | ||
fragmenter: gap | ||
usePhraseHighlighter: true | ||
highlightMultiTerm: true | ||
preserveMulti: false | ||
regex: | ||
slop: 0.5 | ||
pattern: blank | ||
maxAnalyzedChars: 10000 | ||
highlight: | ||
mergeContiguous: false | ||
requireFieldMatch: false | ||
snippets: 3 | ||
fragsize: 0 | ||
mlt: | ||
mintf: 1 | ||
mindf: 1 | ||
maxdf: 0 | ||
maxdfpct: 0 | ||
minwl: 0 | ||
maxwl: 0 | ||
maxqt: 100 | ||
maxntp: 2000 | ||
boost: false | ||
interestingTerms: none | ||
term_modifiers: | ||
slop: 3 | ||
fuzzy: 1 | ||
fuzzy_analyzer: true | ||
advanced: | ||
index_prefix: '' | ||
collection: '' | ||
timezone: '' | ||
multilingual: | ||
limit_to_content_language: false | ||
include_language_independent: true | ||
use_language_undefined_as_fallback_language: false | ||
specific_languages: | ||
en: '0' | ||
de: '0' | ||
fr: '0' | ||
pl: '0' | ||
it: '0' | ||
es: '0' | ||
cs: '0' | ||
hu: '0' | ||
ro: '0' | ||
bg: '0' | ||
el: '0' | ||
hr: '0' | ||
sk: '0' | ||
sl: '0' | ||
sr: '0' | ||
nl: '0' | ||
use_universal_collation: false | ||
id: search_api_solr_log | ||
name: 'Solr Log' | ||
description: '' | ||
read_only: true | ||
field_settings: | ||
hostname: | ||
label: Hostname | ||
datasource_id: solr_document | ||
property_path: ss_hostname | ||
type: string | ||
id: | ||
label: Id | ||
datasource_id: solr_document | ||
property_path: id | ||
type: string | ||
index_id: | ||
label: 'Index ID' | ||
datasource_id: solr_document | ||
property_path: index_id | ||
type: string | ||
location: | ||
label: Location | ||
datasource_id: solr_document | ||
property_path: ss_location | ||
type: string | ||
message: | ||
label: Message | ||
datasource_id: solr_document | ||
property_path: tus_message | ||
type: text | ||
message_en: | ||
label: 'Message English' | ||
datasource_id: solr_document | ||
property_path: ts_X3b_en_message | ||
type: text | ||
referer: | ||
label: Referer | ||
datasource_id: solr_document | ||
property_path: ss_referer | ||
type: string | ||
severity: | ||
label: Severity | ||
datasource_id: solr_document | ||
property_path: its_severity | ||
type: integer | ||
timestamp: | ||
label: Timestamp | ||
datasource_id: solr_document | ||
property_path: timestamp | ||
type: date | ||
type: | ||
label: Type | ||
datasource_id: solr_document | ||
property_path: ss_type | ||
type: string | ||
uid: | ||
label: 'User ID' | ||
datasource_id: solr_document | ||
property_path: its_uid | ||
type: integer | ||
variables: | ||
label: Variables | ||
datasource_id: solr_document | ||
property_path: zs_variables | ||
type: string | ||
datasource_settings: | ||
solr_document: | ||
id_field: id | ||
request_handler: '' | ||
default_query: '*:*' | ||
label_field: '' | ||
language_field: '' | ||
url_field: '' | ||
processor_settings: | ||
add_url: { } | ||
aggregated_field: { } | ||
auto_aggregated_fulltext_field: { } | ||
custom_value: { } | ||
entity_type: { } | ||
language_with_fallback: { } | ||
rendered_item: { } | ||
solr_date_range: { } | ||
tracker_settings: | ||
default: | ||
indexing_order: fifo | ||
options: | ||
cron_limit: 50 | ||
delete_on_fail: true | ||
index_directly: false | ||
track_changes_in_references: false | ||
server: search_api_solr_log_server |
48 changes: 48 additions & 0 deletions
48
modules/search_api_solr_log/config/install/search_api.server.search_api_solr_log_server.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- search_api_solr | ||
id: search_api_solr_log_server | ||
name: 'Solr Log Server' | ||
description: 'Adjust the settings to your needs. Note, if you don''t have a dedicated log server, you can use the identical settings of an existing server. But it is important to activate "Advanced / Retrieve result data from Solr".' | ||
backend: search_api_solr | ||
backend_config: | ||
retrieve_data: true | ||
highlight_data: false | ||
site_hash: false | ||
server_prefix: '' | ||
domain: generic | ||
environment: default | ||
connector: standard | ||
connector_config: | ||
scheme: http | ||
host: localhost | ||
port: 8983 | ||
path: / | ||
core: drupal | ||
timeout: 5 | ||
index_timeout: 5 | ||
optimize_timeout: 10 | ||
finalize_timeout: 30 | ||
skip_schema_check: false | ||
solr_version: '' | ||
http_method: AUTO | ||
commit_within: 1000 | ||
jmx: false | ||
jts: false | ||
solr_install_dir: '' | ||
optimize: false | ||
fallback_multiple: false | ||
disabled_field_types: { } | ||
disabled_caches: { } | ||
disabled_request_handlers: | ||
- request_handler_elevate_default_7_0_0 | ||
- request_handler_replicationmaster_default_7_0_0 | ||
- request_handler_replicationslave_default_7_0_0 | ||
disabled_request_dispatchers: | ||
- request_dispatcher_httpcaching_default_7_0_0 | ||
rows: 10 | ||
index_single_documents_fallback_count: 10 | ||
index_empty_text_fields: false | ||
suppress_missing_languages: false |
1 change: 1 addition & 0 deletions
1
modules/search_api_solr_log/config/install/search_api_solr_log.settings.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
days_to_keep: 14 |
Oops, something went wrong.