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

Error when filtering by iface in syscollector experimental call #273

Open
crd1985 opened this issue Jan 10, 2019 · 0 comments
Open

Error when filtering by iface in syscollector experimental call #273

crd1985 opened this issue Jan 10, 2019 · 0 comments
Labels

Comments

@crd1985
Copy link
Contributor

crd1985 commented Jan 10, 2019

Bug report

OS
Ubuntu18

Wazuh version
3.8.0-rev

Wazuh API version
3.8.0

Python version
2, 3

Install type
manager

Install method
packages

Bug description

Filtering by iface when querying to syscollector fails when pointing to /experimental/syscollector/netaddr endpoint. However, when sending request to /syscollector/000/netaddr it works fine. See the example below:

root@master:/home/vagrant# curl -u foo:bar -k "https://localhost:55000/experimental/syscollector/netaddr?pretty&iface=enp0s3"
{
   "error": 604,
   "message": "Filter error. Allowed filters: [ offset  limit  sort  search  select  proto  address  broadcast  netmask ]  "
}
root@master:/home/vagrant# curl -u foo:bar -k "https://localhost:55000/syscollector/000/netaddr?pretty&iface=enp0s3"
{
   "error": 0,
   "data": {
      "totalItems": 2,
      "items": [
         {
            "scan_id": 1872632128,
            "iface": "enp0s3",
            "proto": "ipv4",
            "broadcast": "10.0.2.255",
            "netmask": "255.255.255.0",
            "address": "10.0.2.15"
         },
         {
            "proto": "ipv6",
            "scan_id": 1872632128,
            "iface": "enp0s3",
            "netmask": "ffff:ffff:ffff:ffff::",
            "address": "fe80::62:7aff:fe79:f6ca"
         }
      ]
   }
}
@crd1985 crd1985 added the bug label Jan 10, 2019
@crd1985 crd1985 assigned crd1985 and unassigned crd1985 Jan 14, 2019
@druizz90 druizz90 mentioned this issue Feb 20, 2019
9 tasks
@davidjiglesias davidjiglesias changed the title Error when filtering by iface in syscollector Error when filtering by iface in syscollector experimental call Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant