How do get a list of audits for a particular hostgroup?

The url below does not work to find hostgroup where
Title=Base/Monitored/mobile/staging. "staging" as the search term won't
work because it includes other host groups as well.

https:
//foreman.mycompany.com/audits?search=hostgroup+=+Base/Monitored/mobile/staging

Any thoughts? Using the api is fine too.

> The url below does not work to find hostgroup where
> Title=Base/Monitored/mobile/staging. "staging" as the search term won't
> work because it includes other host groups as well.

Unfortunately we don't have a hostgroup_title/os_title field as we do in
Hosts search, where you could search something like what you're trying
to do here.

I've submitted a pull request with a fix for that at
https://github.com/theforeman/foreman/pull/2613 , feel free to add it to
your foreman instance if you need it urgently, it should work with all
recent versions I think.

Thank you!

··· On 08/14, cosmolux wrote:

https:
//foreman.mycompany.com/audits?search=hostgroup+=+Base/Monitored/mobile/staging

Any thoughts? Using the api is fine too.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato