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

你好,多条件的时间过滤不支持。 #3

Open
xuanyuan1hao opened this issue Apr 24, 2022 · 1 comment
Open

你好,多条件的时间过滤不支持。 #3

xuanyuan1hao opened this issue Apr 24, 2022 · 1 comment

Comments

@xuanyuan1hao
Copy link

我使用如下的语句进行时间范围过滤,这里支持不了。
ip_initiator = '10.0.0.1' AND ip_protocol in ('TCP', 'UDP') AND port_initiator > 80 AND port_initiator < 100
| gentimes end_time start=now-7d end=now
| gentimes start_time start=now-7d end=now
| sort -start_time
| head 30

@Anonymity94
Copy link
Owner

@xuanyuan1hao 你好,这个多时间段的目前是没有支持的。我查阅了下 SPL- Gentimes,无法看出 SPL 是否也支持多时间(或许是可以的,因为有管道符 |)。可以先尝试把其中的一个时间放置在 Search 条件中解决此问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants