-
Notifications
You must be signed in to change notification settings - Fork 21
feat: allow *.xml (beside *.log) files as sample input files #550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b2b3596
feat: allow *.xml (beside *.log) files as sample input files
hsekowski-splunk 3ccf59c
chore: to test the project unit tests
hsekowski-splunk 85717f6
fix: unit test addopted to the change
hsekowski-splunk 85226b4
fix: fake_path corrected for xml sample
hsekowski-splunk 0147b5e
fix: ingestion extended by *.xml files
hsekowski-splunk 5ffe040
chore: updated error msg
hsekowski-splunk c01b8eb
chore: add *.xml file to requirement tests
hsekowski-splunk e2c3f68
chore: assertion changed to reflect second source of the data that ca…
hsekowski-splunk 6fb6702
chore: assertion updated
hsekowski-splunk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,52 @@ | ||
| <?xml version="1.0"?> | ||
| <device> | ||
| <vendor>Juniper</vendor> | ||
| <product>JunOS</product> | ||
| <version id="16.2R1" /> | ||
| <version id="17.1R1" /> | ||
| <version id="17.2R1" /> | ||
| <event code="" name="RT_FLOW_SESSION_CREATE" format="syslog"> | ||
| <transport type="syslog" /> | ||
| <source> | ||
| <jira id="ADDON-25170"/> | ||
| <comment>Got this event form Juniper document.</comment> | ||
| </source> | ||
| <raw> | ||
| <![CDATA[<111> 2020-02-12T03:27:09+10:00 sample.dvc RT_FLOW: RT_FLOW_SESSION_CREATE: session created 1.1.1.1/34667->10.0.0.1/5048 0x0 junos-http 1.1.1.2/34667->10.0.0.2/5048 0x0 sample_src_rule_type sample_src_rule_name sample_dst_rule_type sample_dest_rule_n**ame 6 1660(global) SAMPLE-SERVER-ZONE DUMMY_ZONE 113256 user2(admin) gg-0/0/0.1 SNMP DUMMY_APP UNKNOWN]]> | ||
| </raw> | ||
| <cim> | ||
| <models> | ||
| <model>Network Traffic</model> | ||
| </models> | ||
| <cim_fields> | ||
| <field name="action" value="allowed"/> | ||
| <field name="dest" value="10.0.0.1"/> | ||
| <field name="dest_ip" value="10.0.0.1"/> | ||
| <field name="dest_port" value="5048"/> | ||
| <field name="dest_zone" value="DUMMY_ZONE"/> | ||
| <field name="dvc" value="sample.dvc"/> | ||
| <field name="rule" value="sample_src_rule_name sample_dest_rule_n**ame 1660(global)"/> | ||
| <field name="session_id" value="113256"/> | ||
| <field name="src" value="1.1.1.1"/> | ||
| <field name="src_ip" value="1.1.1.1"/> | ||
| <field name="src_port" value="34667"/> | ||
| <field name="src_zone" value="SAMPLE-SERVER-ZONE"/> | ||
| <field name="src_interface" value="gg-0/0/0.1"/> | ||
| <field name="user" value="user2"/> | ||
| <field name="app" value="SNMP DUMMY_APP"/> | ||
| <field name="transport" value="tcp"/> | ||
| <field name="protocol" value="ip"/> | ||
| <field name="vendor_product" value="Incorrect vendor product"/> | ||
| </cim_fields> | ||
| <missing_recommended_fields> | ||
| <field>bytes</field> | ||
| <field>bytes_in</field> | ||
| <field>bytes_out</field> | ||
| </missing_recommended_fields> | ||
| <exceptions> | ||
| <field name="vendor_product" value="Incorrect vendor product" reason="testing exceptions"/> | ||
| </exceptions> | ||
| </cim> | ||
| <test></test> | ||
| </event> | ||
| </device> |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.