03. 04. 2019 Michele Santuari Log Management, NetEye

How to Manage Permissions in Log Analytics with NetEye 4

NetEye 4 Log Manager, as already presented in this blog post, allows you to easily manage the collection, navigation, visualization and analysis of large numbers of logs.

For many reasons, I as a user may want to limit log access to a subset of users. For example a network administrator should only see the logs of switches, routers…

One of the possible solutions supported by NetEye 4 is to manage the user-specific permissions leveraging the Director hostgroup, which each host can be configured to belong to.

Let’s assume a very simple scenario: two users (network-admin, database-admin) who must have different authorizations:

  • The former is responsible for the network devices that are in network-hostgroup
  • The latter is responsible for the database servers that are in database-hostgroup

Neither user should see monitoring data and logs from the other group, just those under his/her responsibility.

The configuration of these permissions requires defining two roles in the Authentication section under the Configuration menu item:

Those roles serve to limit the permissions based on the hostgroup which each role can see as follows:

  1. Director: limit the visibility of host configurations
  2. Monitoring: show only the status of the hosts
  3. Logs Analytics: map the roles between Log Analytics and those just configured in the screenshot above

Log Analytics must be configured in Search Guard to limit access to logs belonging to the hostgroup by following these steps:

  • Back up the Search Guard configuration:
mkdir /root/backup-hostgroup && /usr/share/neteye/scripts/searchguard/sg_backup.sh -d /root/backup-hostgroup
  • Create new roles in Search Guard with limited permissions based on the hostgroup in /root/backup-hostgroup/sg_roles.yml:
ws_network-hostgroup:
  cluster:
  - "CLUSTER_COMPOSITE_OPS_RO"
  indices:
    ?kibana_*:
      '*':
      - "READ"
    logstash-*:
      '*':
      - "READ"
      _dls_: "{\"match\":{\"hostgroups\":\"network-hostgroup\"}}"
 
ws_database-hostgroup:
  cluster:
  - "CLUSTER_COMPOSITE_OPS_RO"
  indices:
    ?kibana_*:
      '*':
      - "READ"
    logstash-*:
      '*':
      - "READ"
      _dls_: "{\"match\":{\"hostgroups\":\"database-hostgroup\"}}"
  • Add a mapping for the roles in /root/backup-hostgroup/sg_roles_mapping.yml as follows:
ws_network-hostgroup:
  backendroles:
  - "network-hostgroup"
ws_database-hostgroup:
  backendroles:
  - "database-hostgroup"

In an upcoming release, Log Analytics configurations will be simplified via the automated creation of Search Guard roles based on the hostgroups available in Director.

Michele Santuari

Michele Santuari

Software Architect at Wuerth Phoenix
Hi, my name is Michele Santuari and I am a Telecommunication engineer felt in love with OpenFlow, the first attempt of centralized network management, provisioning, and monitoring. I embraced the Software Defined Networking approach to discover a passion for programming languages. Now, I am into Agile methodologies and crazy development process management.

Author

Michele Santuari

Hi, my name is Michele Santuari and I am a Telecommunication engineer felt in love with OpenFlow, the first attempt of centralized network management, provisioning, and monitoring. I embraced the Software Defined Networking approach to discover a passion for programming languages. Now, I am into Agile methodologies and crazy development process management.

Leave a Reply

Your email address will not be published. Required fields are marked *

Archive