1*7aafb12eSNagaraju Goruganti# phosphor-logging 2*7aafb12eSNagaraju Gorugantiphosphor logging provides mechanism for common event and logging creation based 3*7aafb12eSNagaraju Gorugantion information from the journal log. 4*7aafb12eSNagaraju Goruganti 5*7aafb12eSNagaraju Goruganti## To Build 6*7aafb12eSNagaraju Goruganti``` 7*7aafb12eSNagaraju GorugantiTo build this package, do the following steps: 8*7aafb12eSNagaraju Goruganti 9*7aafb12eSNagaraju Goruganti 1. ./bootstrap.sh 10*7aafb12eSNagaraju Goruganti 2. ./configure ${CONFIGURE_FLAGS} 11*7aafb12eSNagaraju Goruganti 3. make 12*7aafb12eSNagaraju Goruganti 13*7aafb12eSNagaraju GorugantiTo clean the repository run `./bootstrap.sh clean`. 14*7aafb12eSNagaraju Goruganti``` 15*7aafb12eSNagaraju Goruganti## REST command to delete an error 16*7aafb12eSNagaraju Goruganti 17*7aafb12eSNagaraju Goruganti curl -c cjar -k -X POST -H "Content-Type: application/json" \ 18*7aafb12eSNagaraju Goruganti -d '{"data": [ "root", "<root password>" ] }' https://<BMC IP>/login 19*7aafb12eSNagaraju Goruganti 20*7aafb12eSNagaraju Goruganti curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST \ 21*7aafb12eSNagaraju Goruganti -d '{"data": []}' \ 22*7aafb12eSNagaraju Goruganti https://<BMC IP>/xyz/openbmc_project/logging/entry/<entry num>/action/Delete 23*7aafb12eSNagaraju Goruganti 24*7aafb12eSNagaraju Goruganti## REST command to delete all errors 25*7aafb12eSNagaraju Goruganti 26*7aafb12eSNagaraju Goruganti curl -c cjar -k -X POST -H "Content-Type: application/json" \ 27*7aafb12eSNagaraju Goruganti -d '{"data": [ "root", "<root password>" ] }' https://<<BMC IP>/login 28*7aafb12eSNagaraju Goruganti 29*7aafb12eSNagaraju Goruganti curl -c cjar -b cjar -k -H "Content-Type: application/json" \ 30*7aafb12eSNagaraju Goruganti -X POST https://<<BMC IP>/xyz/openbmc_project/logging/action/deleteAll \ 31*7aafb12eSNagaraju Goruganti -d "{\"data\": [] }" 32*7aafb12eSNagaraju Goruganti 33