meltr 2.0.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meltr-2.0.0a1/LICENSE +201 -0
- meltr-2.0.0a1/MANIFEST.in +3 -0
- meltr-2.0.0a1/NOTICE +10 -0
- meltr-2.0.0a1/PKG-INFO +238 -0
- meltr-2.0.0a1/README.md +189 -0
- meltr-2.0.0a1/pyproject.toml +154 -0
- meltr-2.0.0a1/setup.cfg +4 -0
- meltr-2.0.0a1/src/meltr/__init__.py +3 -0
- meltr-2.0.0a1/src/meltr/__main__.py +6 -0
- meltr-2.0.0a1/src/meltr/api/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/api/auth.py +47 -0
- meltr-2.0.0a1/src/meltr/api/endpoints/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/api/endpoints/community.py +38 -0
- meltr-2.0.0a1/src/meltr/api/endpoints/entities.py +181 -0
- meltr-2.0.0a1/src/meltr/api/endpoints/generators.py +202 -0
- meltr-2.0.0a1/src/meltr/api/endpoints/health.py +239 -0
- meltr-2.0.0a1/src/meltr/api/endpoints/pipelines.py +91 -0
- meltr-2.0.0a1/src/meltr/api/endpoints/templates.py +180 -0
- meltr-2.0.0a1/src/meltr/api/errors.py +11 -0
- meltr-2.0.0a1/src/meltr/api/server.py +181 -0
- meltr-2.0.0a1/src/meltr/cli/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/cli/api.py +179 -0
- meltr-2.0.0a1/src/meltr/cli/api_client.py +152 -0
- meltr-2.0.0a1/src/meltr/cli/config.py +357 -0
- meltr-2.0.0a1/src/meltr/cli/config_editor.py +1764 -0
- meltr-2.0.0a1/src/meltr/cli/dashboard.py +296 -0
- meltr-2.0.0a1/src/meltr/cli/entities.py +380 -0
- meltr-2.0.0a1/src/meltr/cli/entities_editor.py +726 -0
- meltr-2.0.0a1/src/meltr/cli/generators.py +329 -0
- meltr-2.0.0a1/src/meltr/cli/init.py +287 -0
- meltr-2.0.0a1/src/meltr/cli/main.py +170 -0
- meltr-2.0.0a1/src/meltr/cli/menu.py +70 -0
- meltr-2.0.0a1/src/meltr/cli/pipelines.py +163 -0
- meltr-2.0.0a1/src/meltr/cli/restart.py +67 -0
- meltr-2.0.0a1/src/meltr/cli/service.py +332 -0
- meltr-2.0.0a1/src/meltr/cli/templates.py +2308 -0
- meltr-2.0.0a1/src/meltr/cli/user_utils.py +129 -0
- meltr-2.0.0a1/src/meltr/community/__init__.py +49 -0
- meltr-2.0.0a1/src/meltr/community/client.py +336 -0
- meltr-2.0.0a1/src/meltr/community/package.py +470 -0
- meltr-2.0.0a1/src/meltr/community/updates.py +119 -0
- meltr-2.0.0a1/src/meltr/community/version.py +101 -0
- meltr-2.0.0a1/src/meltr/core/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/core/config.py +486 -0
- meltr-2.0.0a1/src/meltr/core/engine.py +766 -0
- meltr-2.0.0a1/src/meltr/core/frequency.py +154 -0
- meltr-2.0.0a1/src/meltr/core/generator.py +667 -0
- meltr-2.0.0a1/src/meltr/core/internal_log_generator.py +169 -0
- meltr-2.0.0a1/src/meltr/core/paths.py +222 -0
- meltr-2.0.0a1/src/meltr/core/pidfile.py +51 -0
- meltr-2.0.0a1/src/meltr/core/pipeline.py +171 -0
- meltr-2.0.0a1/src/meltr/core/schedule.py +153 -0
- meltr-2.0.0a1/src/meltr/data/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/data/entities.sample.yaml +179 -0
- meltr-2.0.0a1/src/meltr/entities/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/entities/registry.py +285 -0
- meltr-2.0.0a1/src/meltr/entities/storage.py +213 -0
- meltr-2.0.0a1/src/meltr/entities/validator.py +432 -0
- meltr-2.0.0a1/src/meltr/outputs/__init__.py +19 -0
- meltr-2.0.0a1/src/meltr/outputs/base.py +273 -0
- meltr-2.0.0a1/src/meltr/outputs/console.py +83 -0
- meltr-2.0.0a1/src/meltr/outputs/factory.py +84 -0
- meltr-2.0.0a1/src/meltr/outputs/file.py +368 -0
- meltr-2.0.0a1/src/meltr/outputs/http.py +1007 -0
- meltr-2.0.0a1/src/meltr/outputs/path_resolver.py +246 -0
- meltr-2.0.0a1/src/meltr/outputs/syslog.py +249 -0
- meltr-2.0.0a1/src/meltr/outputs/tcp.py +128 -0
- meltr-2.0.0a1/src/meltr/service.py +218 -0
- meltr-2.0.0a1/src/meltr/telemetry/__init__.py +3 -0
- meltr-2.0.0a1/src/meltr/telemetry/client.py +114 -0
- meltr-2.0.0a1/src/meltr/templates/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/templates/cache.py +134 -0
- meltr-2.0.0a1/src/meltr/templates/filters.py +488 -0
- meltr-2.0.0a1/src/meltr/templates/loader.py +253 -0
- meltr-2.0.0a1/src/meltr/templates/metadata.py +84 -0
- meltr-2.0.0a1/src/meltr/templates/renderer.py +125 -0
- meltr-2.0.0a1/src/meltr/templates/validator.py +302 -0
- meltr-2.0.0a1/src/meltr/utils/__init__.py +1 -0
- meltr-2.0.0a1/src/meltr/utils/logging.py +174 -0
- meltr-2.0.0a1/src/meltr/utils/public_errors.py +13 -0
- meltr-2.0.0a1/src/meltr.egg-info/PKG-INFO +238 -0
- meltr-2.0.0a1/src/meltr.egg-info/SOURCES.txt +114 -0
- meltr-2.0.0a1/src/meltr.egg-info/dependency_links.txt +1 -0
- meltr-2.0.0a1/src/meltr.egg-info/entry_points.txt +3 -0
- meltr-2.0.0a1/src/meltr.egg-info/requires.txt +24 -0
- meltr-2.0.0a1/src/meltr.egg-info/top_level.txt +1 -0
- meltr-2.0.0a1/tests/test_api_auth.py +228 -0
- meltr-2.0.0a1/tests/test_api_generators_errors.py +46 -0
- meltr-2.0.0a1/tests/test_cli_templates_menu.py +131 -0
- meltr-2.0.0a1/tests/test_community_updates.py +261 -0
- meltr-2.0.0a1/tests/test_config.py +470 -0
- meltr-2.0.0a1/tests/test_config_editor_create_outputs.py +77 -0
- meltr-2.0.0a1/tests/test_dashboard_avg_rate_div0.py +34 -0
- meltr-2.0.0a1/tests/test_dashboard_markup_and_loop_safety.py +70 -0
- meltr-2.0.0a1/tests/test_engine_output_def_live_reload.py +90 -0
- meltr-2.0.0a1/tests/test_engine_runtime.py +50 -0
- meltr-2.0.0a1/tests/test_generator_state_transitions.py +42 -0
- meltr-2.0.0a1/tests/test_http_output_backpressure.py +67 -0
- meltr-2.0.0a1/tests/test_init.py +106 -0
- meltr-2.0.0a1/tests/test_init_simple.py +41 -0
- meltr-2.0.0a1/tests/test_internal_log_generator.py +96 -0
- meltr-2.0.0a1/tests/test_logging_setup.py +49 -0
- meltr-2.0.0a1/tests/test_output_handlers.py +153 -0
- meltr-2.0.0a1/tests/test_paths.py +194 -0
- meltr-2.0.0a1/tests/test_phase6_bulk.py +254 -0
- meltr-2.0.0a1/tests/test_phase6_coverage.py +695 -0
- meltr-2.0.0a1/tests/test_phase6_extended.py +381 -0
- meltr-2.0.0a1/tests/test_phase6_final.py +168 -0
- meltr-2.0.0a1/tests/test_phase6_more.py +190 -0
- meltr-2.0.0a1/tests/test_phase6_templates_cli.py +71 -0
- meltr-2.0.0a1/tests/test_pipelines.py +298 -0
- meltr-2.0.0a1/tests/test_public_errors.py +16 -0
- meltr-2.0.0a1/tests/test_restart_command.py +83 -0
- meltr-2.0.0a1/tests/test_schedule.py +268 -0
- meltr-2.0.0a1/tests/test_telemetry.py +71 -0
- meltr-2.0.0a1/tests/test_template_preview.py +161 -0
meltr-2.0.0a1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
meltr-2.0.0a1/NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LogForge
|
|
2
|
+
|
|
3
|
+
Copyright 2024-2026 Fulcrum Technology Solutions and contributors.
|
|
4
|
+
|
|
5
|
+
This product includes software developed for the LogForge project.
|
|
6
|
+
|
|
7
|
+
See LICENSE for the Apache License, Version 2.0.
|
|
8
|
+
|
|
9
|
+
Official Linux release bundles (logforge-*-linux-x86_64.tar.gz) ship THIRD_PARTY_NOTICES.txt
|
|
10
|
+
and PYTHON_PSF_LICENSE.txt for third-party Python packages and the embedded CPython runtime.
|
meltr-2.0.0a1/PKG-INFO
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: meltr
|
|
3
|
+
Version: 2.0.0a1
|
|
4
|
+
Summary: Synthetic event log generator with template-based architecture
|
|
5
|
+
Author-email: John Owen <john@ftsc.com>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/Fulcrum-Technology-Solutions/MELTr
|
|
8
|
+
Project-URL: Documentation, https://github.com/Fulcrum-Technology-Solutions/MELTr#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/Fulcrum-Technology-Solutions/MELTr.git
|
|
10
|
+
Project-URL: Issues, https://github.com/Fulcrum-Technology-Solutions/MELTr/issues
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: System Administrators
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: System :: Logging
|
|
20
|
+
Classifier: Topic :: Software Development :: Testing
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
License-File: NOTICE
|
|
25
|
+
Requires-Dist: jinja2>=3.1.6
|
|
26
|
+
Requires-Dist: pyyaml>=6.0.3
|
|
27
|
+
Requires-Dist: typer>=0.27.0
|
|
28
|
+
Requires-Dist: requests>=2.34.2
|
|
29
|
+
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
30
|
+
Requires-Dist: fastapi>=0.109.0
|
|
31
|
+
Requires-Dist: uvicorn[standard]>=0.51.0
|
|
32
|
+
Requires-Dist: prometheus-client>=0.19.0
|
|
33
|
+
Requires-Dist: pydantic>=2.13.4
|
|
34
|
+
Requires-Dist: faker>=40.28.1
|
|
35
|
+
Requires-Dist: rich>=15.0.0
|
|
36
|
+
Requires-Dist: psutil>=7.2.2
|
|
37
|
+
Provides-Extra: dev
|
|
38
|
+
Requires-Dist: pip-licenses>=5.5.5; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest>=9.1.1; extra == "dev"
|
|
40
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
|
|
41
|
+
Requires-Dist: pytest-asyncio>=1.4.0; extra == "dev"
|
|
42
|
+
Requires-Dist: pytest-mock>=3.15.1; extra == "dev"
|
|
43
|
+
Requires-Dist: black>=26.5.1; extra == "dev"
|
|
44
|
+
Requires-Dist: ruff>=0.15.22; extra == "dev"
|
|
45
|
+
Requires-Dist: mypy>=2.3.0; extra == "dev"
|
|
46
|
+
Requires-Dist: httpx>=0.28.1; extra == "dev"
|
|
47
|
+
Requires-Dist: jsonschema>=4.26.0; extra == "dev"
|
|
48
|
+
Dynamic: license-file
|
|
49
|
+
|
|
50
|
+
# MELTr
|
|
51
|
+
|
|
52
|
+
MELTr is a synthetic event log generator for SOC, DFIR, and platform teams who need realistic data to test pipelines, detections, and integrations.
|
|
53
|
+
|
|
54
|
+
> **Formerly LogForge OSS.** The engine lives here now. Community templates still sync from [logforge.io](https://logforge.io) during the transition; other LogForge repos will migrate later.
|
|
55
|
+
|
|
56
|
+
## Features
|
|
57
|
+
|
|
58
|
+
- FastAPI management plane + Typer CLI (`meltr`)
|
|
59
|
+
- Jinja2 templates with Faker + entity registry
|
|
60
|
+
- Community template install (`default/` / `custom/`)
|
|
61
|
+
- Pluggable outputs: file, console, HTTP, TCP, syslog
|
|
62
|
+
- Prometheus metrics and resilient output buffering
|
|
63
|
+
- Multi-template pipelines with schedule gates (`continuous`, `window`, `burst`)
|
|
64
|
+
|
|
65
|
+
## Schedule
|
|
66
|
+
|
|
67
|
+
Generators and pipelines can gate emission with a `schedule` block. Frequency/variation still controls rate; the schedule decides whether emission is allowed.
|
|
68
|
+
|
|
69
|
+
| Mode | Behavior |
|
|
70
|
+
|------|----------|
|
|
71
|
+
| `continuous` | Emit whenever started (default) |
|
|
72
|
+
| `window` | Emit only inside tz-aware `days` + `time`; stay running but emit zero outside the window |
|
|
73
|
+
| `burst` | Emit until `count` events **or** `duration`, then auto-stop |
|
|
74
|
+
|
|
75
|
+
Pipeline example:
|
|
76
|
+
|
|
77
|
+
```yaml
|
|
78
|
+
pipelines:
|
|
79
|
+
- name: lab-burst
|
|
80
|
+
enabled: true
|
|
81
|
+
outputs: [file-out]
|
|
82
|
+
schedule:
|
|
83
|
+
mode: burst
|
|
84
|
+
count: 1000
|
|
85
|
+
duration: 5m
|
|
86
|
+
streams:
|
|
87
|
+
- template: vendor/product/source/event
|
|
88
|
+
weight: 1.0
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Optional on standalone generators:
|
|
92
|
+
|
|
93
|
+
```yaml
|
|
94
|
+
generators:
|
|
95
|
+
- name: business-hours
|
|
96
|
+
template: vendor/product/source/event
|
|
97
|
+
enabled: true
|
|
98
|
+
outputs: [file-out]
|
|
99
|
+
schedule:
|
|
100
|
+
mode: window
|
|
101
|
+
days: [mon, tue, wed, thu, fri]
|
|
102
|
+
time: "09:00-17:00"
|
|
103
|
+
timezone: America/New_York
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Install
|
|
107
|
+
|
|
108
|
+
### From source (development)
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
112
|
+
pip install -e ".[dev]"
|
|
113
|
+
meltr init --force
|
|
114
|
+
meltr start --foreground
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### PyPI
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
pip install meltr
|
|
121
|
+
meltr init --force
|
|
122
|
+
meltr start --foreground
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Requires **Python ≥3.10**. The `logforge` name was taken on PyPI; **`meltr` is the published package name**. Pre-release builds may be tagged `v2.0.0a*` before the stable v2.0.0 release.
|
|
126
|
+
|
|
127
|
+
## Quick start
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
export MELTR_HOME=~/.meltr # optional; defaults to ~/.meltr
|
|
131
|
+
meltr init --force
|
|
132
|
+
meltr templates browse
|
|
133
|
+
meltr generators list
|
|
134
|
+
meltr start # daemon on POSIX; use --foreground / -f to stay attached
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Compat: `LOGFORGE_HOME` and `LOGFORGE_API_KEY` still work if `MELTR_*` is unset. The `logforge` CLI entry point is a temporary alias for `meltr`.
|
|
138
|
+
|
|
139
|
+
## Templates: preview and updates
|
|
140
|
+
|
|
141
|
+
Preview renders sample events **without** starting generators (service must be running for CLI; API works standalone):
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
meltr start --foreground # or daemonized: meltr start
|
|
145
|
+
meltr templates preview testvendor/testproduct/events/preview --count 3
|
|
146
|
+
# API: POST /api/templates/{id}/preview {"count": 3}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Check installed community packages against the registry ([logforge.io](https://logforge.io) by default):
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
meltr templates check-updates
|
|
153
|
+
# API: GET /api/community/updates
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Registry errors exit non-zero from the CLI and return 502 from the API — local installs are never modified.
|
|
157
|
+
|
|
158
|
+
## Pipelines
|
|
159
|
+
|
|
160
|
+
Multi-template **pipelines** share outputs and an optional schedule. Each stream maps to one template; the engine spawns child generators (`pipeline-name::0`, `pipeline-name::1`, …). The `streams[].weight` field is accepted in config but **not yet applied** — all streams run at equal rate until weighted selection lands in a future release.
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
meltr pipelines list
|
|
164
|
+
meltr pipelines start identity-lab
|
|
165
|
+
meltr pipelines status identity-lab
|
|
166
|
+
meltr pipelines stop identity-lab
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Configure under `pipelines:` in `config.yaml` (see [Schedule](#schedule) below). Standalone `generators:` remain supported for backward compatibility.
|
|
170
|
+
|
|
171
|
+
## What's not in OSS
|
|
172
|
+
|
|
173
|
+
MELTr is the **single-node** open-source product. These capabilities live in **LogForge Enterprise** (or a future MELTr Enterprise) only:
|
|
174
|
+
|
|
175
|
+
- Distributed **worker fleet** and leader–worker job dispatch
|
|
176
|
+
- **LLM-assisted** template authoring in the web UI
|
|
177
|
+
- Postgres-backed manager and multi-tenant UI
|
|
178
|
+
|
|
179
|
+
See [ecosystem glossary](docs/ecosystem-glossary.md) for shared terminology.
|
|
180
|
+
|
|
181
|
+
## API authentication
|
|
182
|
+
|
|
183
|
+
Management routes require a Bearer token when authentication is active. **Key-implies-auth:** setting `MELTR_API_KEY` (or `LOGFORGE_API_KEY`) enables auth even if `api.auth.enabled` is false in config.
|
|
184
|
+
|
|
185
|
+
| Route | Auth required |
|
|
186
|
+
|-------|---------------|
|
|
187
|
+
| `GET /api/health` | No (public liveness) |
|
|
188
|
+
| All other `/api/*` routes | Yes, when auth is active |
|
|
189
|
+
|
|
190
|
+
Configure in `config.yaml`:
|
|
191
|
+
|
|
192
|
+
```yaml
|
|
193
|
+
api:
|
|
194
|
+
auth:
|
|
195
|
+
enabled: true # requires a key at startup
|
|
196
|
+
key: "your-secret" # optional if MELTR_API_KEY is set
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
If `api.auth.enabled: true` and no key is configured (env or config), the API refuses to start. Send requests with `Authorization: Bearer <key>`.
|
|
200
|
+
|
|
201
|
+
## Environment
|
|
202
|
+
|
|
203
|
+
| Variable | Purpose |
|
|
204
|
+
|----------|---------|
|
|
205
|
+
| `MELTR_HOME` | Config/data root (default `~/.meltr`) |
|
|
206
|
+
| `MELTR_API_URL` | Management API base URL |
|
|
207
|
+
| `MELTR_API_KEY` | Bearer token when API auth is enabled |
|
|
208
|
+
| `MELTR_TELEMETRY` | Set `0` / `false` to disable telemetry |
|
|
209
|
+
|
|
210
|
+
## Publishing
|
|
211
|
+
|
|
212
|
+
PyPI releases use [Trusted Publishing](https://docs.pypi.org/trusted-publishers/) (OIDC) — no long-lived API tokens in GitHub secrets.
|
|
213
|
+
|
|
214
|
+
- Create an empty **`meltr`** project on [pypi.org](https://pypi.org) (or claim it if reserved).
|
|
215
|
+
- In project settings → **Publishing**, add a Trusted Publisher: GitHub, org/repo **`Fulcrum-Technology-Solutions/MELTr`**, workflow **`publish-pypi.yml`**, environment **`pypi`**.
|
|
216
|
+
- In this repo, add a GitHub **environment** named `pypi` (Settings → Environments); optional protection rules for production releases.
|
|
217
|
+
- Push a tag matching `v*` (e.g. `v2.0.0a1`) or run **Publish to PyPI** manually via workflow dispatch after Trusted Publisher is linked.
|
|
218
|
+
|
|
219
|
+
## Docs
|
|
220
|
+
|
|
221
|
+
- [Ecosystem glossary](docs/ecosystem-glossary.md)
|
|
222
|
+
- [HTTP destination presets (Cribl / Splunk HEC)](docs/deployment/destination-presets.md)
|
|
223
|
+
- [Development setup](docs/development/setup.md)
|
|
224
|
+
- [Linux tarball deployment](docs/deployment/linux-tarball.md)
|
|
225
|
+
- [v2.0 completion plan](docs/superpowers/plans/2026-08-29-meltr-v2-completion.md)
|
|
226
|
+
- [v2.0.0 release notes](docs/release-notes-2.0.0.md)
|
|
227
|
+
|
|
228
|
+
## Development
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
pytest # requires MELTR_HOME (temp dir is fine); coverage gate is 50% on full src/meltr (no whole-file omits)
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Phase 6 ships with **interim honest coverage (~50%)**; tracked follow-up is **≥60% without omits** (see [release notes](docs/release-notes-2.0.0.md)).
|
|
235
|
+
|
|
236
|
+
## License
|
|
237
|
+
|
|
238
|
+
Apache-2.0
|
meltr-2.0.0a1/README.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# MELTr
|
|
2
|
+
|
|
3
|
+
MELTr is a synthetic event log generator for SOC, DFIR, and platform teams who need realistic data to test pipelines, detections, and integrations.
|
|
4
|
+
|
|
5
|
+
> **Formerly LogForge OSS.** The engine lives here now. Community templates still sync from [logforge.io](https://logforge.io) during the transition; other LogForge repos will migrate later.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- FastAPI management plane + Typer CLI (`meltr`)
|
|
10
|
+
- Jinja2 templates with Faker + entity registry
|
|
11
|
+
- Community template install (`default/` / `custom/`)
|
|
12
|
+
- Pluggable outputs: file, console, HTTP, TCP, syslog
|
|
13
|
+
- Prometheus metrics and resilient output buffering
|
|
14
|
+
- Multi-template pipelines with schedule gates (`continuous`, `window`, `burst`)
|
|
15
|
+
|
|
16
|
+
## Schedule
|
|
17
|
+
|
|
18
|
+
Generators and pipelines can gate emission with a `schedule` block. Frequency/variation still controls rate; the schedule decides whether emission is allowed.
|
|
19
|
+
|
|
20
|
+
| Mode | Behavior |
|
|
21
|
+
|------|----------|
|
|
22
|
+
| `continuous` | Emit whenever started (default) |
|
|
23
|
+
| `window` | Emit only inside tz-aware `days` + `time`; stay running but emit zero outside the window |
|
|
24
|
+
| `burst` | Emit until `count` events **or** `duration`, then auto-stop |
|
|
25
|
+
|
|
26
|
+
Pipeline example:
|
|
27
|
+
|
|
28
|
+
```yaml
|
|
29
|
+
pipelines:
|
|
30
|
+
- name: lab-burst
|
|
31
|
+
enabled: true
|
|
32
|
+
outputs: [file-out]
|
|
33
|
+
schedule:
|
|
34
|
+
mode: burst
|
|
35
|
+
count: 1000
|
|
36
|
+
duration: 5m
|
|
37
|
+
streams:
|
|
38
|
+
- template: vendor/product/source/event
|
|
39
|
+
weight: 1.0
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Optional on standalone generators:
|
|
43
|
+
|
|
44
|
+
```yaml
|
|
45
|
+
generators:
|
|
46
|
+
- name: business-hours
|
|
47
|
+
template: vendor/product/source/event
|
|
48
|
+
enabled: true
|
|
49
|
+
outputs: [file-out]
|
|
50
|
+
schedule:
|
|
51
|
+
mode: window
|
|
52
|
+
days: [mon, tue, wed, thu, fri]
|
|
53
|
+
time: "09:00-17:00"
|
|
54
|
+
timezone: America/New_York
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Install
|
|
58
|
+
|
|
59
|
+
### From source (development)
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
63
|
+
pip install -e ".[dev]"
|
|
64
|
+
meltr init --force
|
|
65
|
+
meltr start --foreground
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### PyPI
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pip install meltr
|
|
72
|
+
meltr init --force
|
|
73
|
+
meltr start --foreground
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Requires **Python ≥3.10**. The `logforge` name was taken on PyPI; **`meltr` is the published package name**. Pre-release builds may be tagged `v2.0.0a*` before the stable v2.0.0 release.
|
|
77
|
+
|
|
78
|
+
## Quick start
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
export MELTR_HOME=~/.meltr # optional; defaults to ~/.meltr
|
|
82
|
+
meltr init --force
|
|
83
|
+
meltr templates browse
|
|
84
|
+
meltr generators list
|
|
85
|
+
meltr start # daemon on POSIX; use --foreground / -f to stay attached
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Compat: `LOGFORGE_HOME` and `LOGFORGE_API_KEY` still work if `MELTR_*` is unset. The `logforge` CLI entry point is a temporary alias for `meltr`.
|
|
89
|
+
|
|
90
|
+
## Templates: preview and updates
|
|
91
|
+
|
|
92
|
+
Preview renders sample events **without** starting generators (service must be running for CLI; API works standalone):
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
meltr start --foreground # or daemonized: meltr start
|
|
96
|
+
meltr templates preview testvendor/testproduct/events/preview --count 3
|
|
97
|
+
# API: POST /api/templates/{id}/preview {"count": 3}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Check installed community packages against the registry ([logforge.io](https://logforge.io) by default):
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
meltr templates check-updates
|
|
104
|
+
# API: GET /api/community/updates
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Registry errors exit non-zero from the CLI and return 502 from the API — local installs are never modified.
|
|
108
|
+
|
|
109
|
+
## Pipelines
|
|
110
|
+
|
|
111
|
+
Multi-template **pipelines** share outputs and an optional schedule. Each stream maps to one template; the engine spawns child generators (`pipeline-name::0`, `pipeline-name::1`, …). The `streams[].weight` field is accepted in config but **not yet applied** — all streams run at equal rate until weighted selection lands in a future release.
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
meltr pipelines list
|
|
115
|
+
meltr pipelines start identity-lab
|
|
116
|
+
meltr pipelines status identity-lab
|
|
117
|
+
meltr pipelines stop identity-lab
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Configure under `pipelines:` in `config.yaml` (see [Schedule](#schedule) below). Standalone `generators:` remain supported for backward compatibility.
|
|
121
|
+
|
|
122
|
+
## What's not in OSS
|
|
123
|
+
|
|
124
|
+
MELTr is the **single-node** open-source product. These capabilities live in **LogForge Enterprise** (or a future MELTr Enterprise) only:
|
|
125
|
+
|
|
126
|
+
- Distributed **worker fleet** and leader–worker job dispatch
|
|
127
|
+
- **LLM-assisted** template authoring in the web UI
|
|
128
|
+
- Postgres-backed manager and multi-tenant UI
|
|
129
|
+
|
|
130
|
+
See [ecosystem glossary](docs/ecosystem-glossary.md) for shared terminology.
|
|
131
|
+
|
|
132
|
+
## API authentication
|
|
133
|
+
|
|
134
|
+
Management routes require a Bearer token when authentication is active. **Key-implies-auth:** setting `MELTR_API_KEY` (or `LOGFORGE_API_KEY`) enables auth even if `api.auth.enabled` is false in config.
|
|
135
|
+
|
|
136
|
+
| Route | Auth required |
|
|
137
|
+
|-------|---------------|
|
|
138
|
+
| `GET /api/health` | No (public liveness) |
|
|
139
|
+
| All other `/api/*` routes | Yes, when auth is active |
|
|
140
|
+
|
|
141
|
+
Configure in `config.yaml`:
|
|
142
|
+
|
|
143
|
+
```yaml
|
|
144
|
+
api:
|
|
145
|
+
auth:
|
|
146
|
+
enabled: true # requires a key at startup
|
|
147
|
+
key: "your-secret" # optional if MELTR_API_KEY is set
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
If `api.auth.enabled: true` and no key is configured (env or config), the API refuses to start. Send requests with `Authorization: Bearer <key>`.
|
|
151
|
+
|
|
152
|
+
## Environment
|
|
153
|
+
|
|
154
|
+
| Variable | Purpose |
|
|
155
|
+
|----------|---------|
|
|
156
|
+
| `MELTR_HOME` | Config/data root (default `~/.meltr`) |
|
|
157
|
+
| `MELTR_API_URL` | Management API base URL |
|
|
158
|
+
| `MELTR_API_KEY` | Bearer token when API auth is enabled |
|
|
159
|
+
| `MELTR_TELEMETRY` | Set `0` / `false` to disable telemetry |
|
|
160
|
+
|
|
161
|
+
## Publishing
|
|
162
|
+
|
|
163
|
+
PyPI releases use [Trusted Publishing](https://docs.pypi.org/trusted-publishers/) (OIDC) — no long-lived API tokens in GitHub secrets.
|
|
164
|
+
|
|
165
|
+
- Create an empty **`meltr`** project on [pypi.org](https://pypi.org) (or claim it if reserved).
|
|
166
|
+
- In project settings → **Publishing**, add a Trusted Publisher: GitHub, org/repo **`Fulcrum-Technology-Solutions/MELTr`**, workflow **`publish-pypi.yml`**, environment **`pypi`**.
|
|
167
|
+
- In this repo, add a GitHub **environment** named `pypi` (Settings → Environments); optional protection rules for production releases.
|
|
168
|
+
- Push a tag matching `v*` (e.g. `v2.0.0a1`) or run **Publish to PyPI** manually via workflow dispatch after Trusted Publisher is linked.
|
|
169
|
+
|
|
170
|
+
## Docs
|
|
171
|
+
|
|
172
|
+
- [Ecosystem glossary](docs/ecosystem-glossary.md)
|
|
173
|
+
- [HTTP destination presets (Cribl / Splunk HEC)](docs/deployment/destination-presets.md)
|
|
174
|
+
- [Development setup](docs/development/setup.md)
|
|
175
|
+
- [Linux tarball deployment](docs/deployment/linux-tarball.md)
|
|
176
|
+
- [v2.0 completion plan](docs/superpowers/plans/2026-08-29-meltr-v2-completion.md)
|
|
177
|
+
- [v2.0.0 release notes](docs/release-notes-2.0.0.md)
|
|
178
|
+
|
|
179
|
+
## Development
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
pytest # requires MELTR_HOME (temp dir is fine); coverage gate is 50% on full src/meltr (no whole-file omits)
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Phase 6 ships with **interim honest coverage (~50%)**; tracked follow-up is **≥60% without omits** (see [release notes](docs/release-notes-2.0.0.md)).
|
|
186
|
+
|
|
187
|
+
## License
|
|
188
|
+
|
|
189
|
+
Apache-2.0
|