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

host.ip adds type configuration options, for example, only collects ip or collects mac #32251

Closed
zhangjiabin1010 opened this issue Apr 9, 2024 · 3 comments
Labels
enhancement New feature or request needs triage New item requiring triage processor/resource Resource processor processor/resourcedetection Resource detection processor

Comments

@zhangjiabin1010
Copy link

zhangjiabin1010 commented Apr 9, 2024

Component(s)

processor/resource, processor/resourcedetection

Is your feature request related to a problem? Please describe.

Currently, host.ip collects many types of data, which cannot be aggregated. Can it be made Attribute configurable, for example, only IP is collected, and only Mac is collected?

Describe the solution you'd like

host.ip:
attributes: [ip,mac]
or
host.ip:
attributes: [ip4,mac,ip6]

Describe alternatives you've considered

No response

Additional context

Or adjust the default order so that ip4 is ranked first in the list.

@zhangjiabin1010 zhangjiabin1010 added enhancement New feature or request needs triage New item requiring triage labels Apr 9, 2024
@github-actions github-actions bot added processor/resource Resource processor processor/resourcedetection Resource detection processor labels Apr 9, 2024
Copy link
Contributor

github-actions bot commented Apr 9, 2024

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1
Copy link
Member

Hello @zhangjiabin1010, can you share an example of current data that you're getting, vs. what you want? I don't currently have a clear understanding of your request here.

@zhangjiabin1010
Copy link
Author

你好@zhangjiabin1010,您能分享一下您获得的当前数据与您想要的数据的示例吗?我目前还不清楚您在这里的要求。

current----Obtained information about all network:
'host.ip':'["192.168.1.139","fe80::f816:3eff:fe4b:a32e","172.17.0.1","fe80::42:5ff:fe3d:fd12","fe80::f816:3eff:feb7:40ea","203.0.113.254","fe80::143b:4aff:fe39:e37d","10.42.0.0","fe80::a087:90ff:fec3:c949","10.42.0.1","fe80::604f:ff:fe0d:fcaa","fe80::e8d3:19ff:fe4f:ba3c","fe80::6819:19ff:fe44:eaf","fe80::502a:cfff:fe48:e592","fe80::e8b9:dff:fea1:638d","fe80::ec71:76ff:fe84:2405","fe80::6033:51ff:fe1c:1219","fe80::dc1a:7aff:fee0:d412","fe80::9c5f:cfff:fe20:12ac","fe80::d083:99ff:fe4e:e1a4","fe80::b092:40ff:fe26:9b64","fe80::bc41:c7ff:fed3:2a3c","fe80::7423:4dff:fe4d:6067","fe80::a4b7:5aff:fe05:6a43"]'

Can you add setting options to collect only ipv4 addresses, or only ipv6 addresses, or only Loopback Addresses.

'host.ip':'["192.168.1.139"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage processor/resource Resource processor processor/resourcedetection Resource detection processor
Projects
None yet
Development

No branches or pull requests

2 participants