Skip to content

Commit 3c706fe

Browse files
authored
Merge pull request #11 from UncoderIO/structure_small_refactor
Small structure refactor
2 parents b0153cf + faf440f commit 3c706fe

File tree

216 files changed

+487
-557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+487
-557
lines changed

siem-converter/app/converter/backends/__init__.py

Lines changed: 0 additions & 122 deletions
This file was deleted.

siem-converter/app/converter/backends/elasticsearch/parsers/elasticsearch.py

Lines changed: 0 additions & 65 deletions
This file was deleted.

siem-converter/app/converter/backends/elasticsearch/tokenizer.py

Lines changed: 0 additions & 109 deletions
This file was deleted.

siem-converter/app/converter/backends/opensearch/mapping.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

siem-converter/app/converter/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22

3-
from app.converter.backends.roota.parsers.roota import RootAParser
3+
from app.converter.platforms.roota.parsers.roota import RootAParser
44
from app.converter.core.exceptions.core import UnsupportedPlatform
55
from app.converter.core.operator_types.output import SiemContainer
66
from app.converter.managers import RenderManager, ParserManager, render_manager, parser_manager

siem-converter/app/converter/core/render.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def generate_prefix(self, log_source_signature: LogSourceSignature) -> str:
9999
return f"{str(log_source_signature)} {self.and_token}"
100100
return ""
101101

102-
def generate_functions(self, functions: list):
102+
def generate_functions(self, functions: list) -> str:
103103
return ""
104104

105105
def map_field(self, field: Field, source_mapping: SourceMapping) -> List[str]:
@@ -147,7 +147,7 @@ def finalize_query(self,
147147
meta_info: MetaInfoContainer,
148148
source_mapping: SourceMapping = None,
149149
not_supported_functions: list = None) -> str:
150-
query = self.query_pattern.format(prefix=prefix, query=query, functions=functions)
150+
query = self.query_pattern.format(prefix=prefix, query=query, functions=functions).strip()
151151
if not_supported_functions:
152152
rendered_not_supported = self.render_not_supported_functions(not_supported_functions)
153153
return query + rendered_not_supported

siem-converter/app/converter/managers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from abc import ABC
22

3-
from app.converter.backends import __ALL_PARSERS as PARSERS
4-
from app.converter.backends import __ALL_RENDERS as RENDERS
5-
from app.converter.backends import __ALL_RENDERS_CTI as RENDERS_CTI
3+
from app.converter.platforms import __ALL_PARSERS as PARSERS
4+
from app.converter.platforms import __ALL_RENDERS as RENDERS
5+
from app.converter.platforms import __ALL_RENDERS_CTI as RENDERS_CTI
66
from app.converter.core.exceptions.core import UnsupportedRootAParser
77
from app.models.translation import ConvertorPlatform
88

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy