Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Grab devstack:

Code Block
     git clone https://git.openstack.org/openstack-dev/devstack


{group3}
2. Set up a local.conf

Code Block
     [[inspector:local|localrc]]
    HOST_IP=192.168.0.48
    FLOATING_RANGE=192.168.0.224/27
    FIXED_RANGE=10.11.12.0/24
    FIXED_NETWORK_SIZE=256
    FLAT_INTERFACE=eth0
    enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer.git
    SERVICE_TOKEN=cadftest
    SERVICE_TOKEN=p6ssw0rd
    ADMIN_PASSWORD=p6ssw0rd
    MYSQL_PASSWORD=p6ssw0rd
    RABBIT_PASSWORD=p6ssw0rd
    SERVICE_PASSWORD=p6ssw0rd
    LOGFILE=/opt/stack/logs/stack.sh.log
    LIBS_FROM_GIT=python-keystoneclient,python-openstackclient


{group3}
3 . After devstack completes, edit keystone.conf and make (or amend!) the following

Code Block
     notification_format = cadf
    notification_driver = messaging
    notification_driver = log 


{group3}
Note: For Liberty the formatting has changed, and now exists as follows

Code Block
     driver = messaging
    driver = log


{group3}
The above enables logging to both ceilometer and keystones log file (apache log)

...

4. Source admin credentials

Code Block
     . openrc admin admin


{group3}
5. Create a user in keystone (so we create a CADF audit event)

Code Block
     openstack user create cadf_test --os-identity-api-version 3 --os-auth-url http://<your_ip>:5000/v3 --os-default-domain default


{group3}
6. Last of all, let's view the event

Code Block
     ceilometer event-list --query event_type=identity.user.created

{group3} 

Telemetry Events

To call each event:

Code Block
     ceilometer event-list --query event_type=<event>


{group3}
e.g.

Code Block
     ceilometer event-list --query event_type=identity.project.created

{group3}