Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed May 19, 2020
1 parent 84e6404 commit 235f2a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/etc/conf.d/filters/cisco/cisco_syslog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ parser cisco-parser-ex{
value("HOST")
condition(
not match('^\d+$', value('11'))
and match('^[A-Za-z]{1,3}.+' value('11'))
and match('^[A-Za-z0-9]{4,}$' value('11'))
and match('^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$' value('11')))
);
set(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cisco_nx_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_cisco_nx_os_soup2(
"{{ mark }}364241: {{ bsd }} GMT: %ADJ-3-RESOLVE_REQ: Adj resolve request: Failed to resolve {{ host }} Vlan1\n"
)
message = mt.render(
mark="<111>", bsd=bsd, date=date, time=time, tzoffset=tzoffset
mark="<111>", bsd=bsd, host=host, date=date, time=time, tzoffset=tzoffset
)

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

0 comments on commit 235f2a1

Please sign in to comment.