Skip to content
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

docs: add missing key in pan_panos #2150

Merged
merged 2 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/sources/vendor/PaloaltoNetworks/panos.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
| pan:config | None |
| pan:hipmatch | None |
| pan:correlation | None |
| pan:userid | None |

## Sourcetype and Index Configuration

Expand All @@ -38,6 +39,7 @@
| pan_panos_config | pan:config | netops | none |
| pan_panos_hipmatch | pan:hipmatch | netops | none |
| pan_panos_correlation | pan:correlation | netops | none |
| pan_panos_userid | pan:userid | netauth | none |

### Filter type

Expand Down
24 changes: 17 additions & 7 deletions tests/test_arista.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,19 @@
env = Environment()

test_data = [
"{{ mark }} {{ iso }}Z host Acl: %ACL-6-IPACCESS: list acl-internet Ethernet1 denied tcp xxx.xx.xx.xx(63751) -> xxx.xx.xx.xx(445)",
"{{ mark }} {{ iso }}Z AleL3Agent-primary: %AGENT-6-INITIALIZED: Agent 'AleL3Agent-primary' initialized; pid=XXXX",
"{{ mark }} {{ iso }}Z ProcMgr-worker: %PROCMGR-6-WORKER_WARMSTART: ProcMgr worker warm start. (PID=XXXXX)"
{

"template": "{{ mark }} {{ iso }}Z host {{ program }}: %ACL-6-IPACCESS: list acl-internet Ethernet1 denied tcp xxx.xx.xx.xx(63751) -> xxx.xx.xx.xx(445)",
"program": "Acl"
},
{
"template": "{{ mark }} {{ iso }}Z {{ program }}: %AGENT-6-INITIALIZED: Agent 'AleL3Agent-primary' initialized; pid=XXXX",
"program": "AleL3Agent-primary"
},
{
"template": "{{ mark }} {{ iso }}Z {{ program }}: %PROCMGR-6-WORKER_WARMSTART: ProcMgr worker warm start. (PID=XXXXX)",
"program": "ProcMgr-worker"
}
]


Expand All @@ -32,15 +42,15 @@ def test_arista_switch(record_property, setup_wordlist, setup_splunk, setup_sc4s
iso = dt.isoformat()[0:19]
epoch = epoch[:-7]

mt = env.from_string(event + "\n")
message = mt.render(mark="<166>", iso=iso, epoch=epoch)
mt = env.from_string(event["template"] + "\n")
message = mt.render(mark="<166>", iso=iso, epoch=epoch, program=event["program"])

sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])

st = env.from_string(
'search _time={{ epoch }} index=netops sourcetype="arista:eos" source="arista:eos:acl" "ACL-6-IPACCESS"'
'search _time={{ epoch }} index=netops sourcetype="arista:eos" source="arista:eos:{{ program }}"'
)
search = st.render(epoch=epoch)
search = st.render(epoch=epoch, program=event["program"].lower())

resultCount, eventCount = splunk_single(setup_splunk, search)

Expand Down
Loading