Generate ServiceNow Tickets from application logs - servicenow

ServiceNow integration with application
I have a spring boot application , that writes critical errors to a separate log flle. I would like to create a ServiceNow ticket for each unique entry in the log file . Can this be achieved?

you should have the option to trigger a script for the application logs. usually if you are using AWS cloud watch, you can trigger a lambda function and in the lambda function you can write a piece of code to trigger ServiceNow API for creating ServiceNow ticket.
Ref: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html
https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/integrate/inbound_rest/reference/r_TableAPIPythonExamples.html

Related

Webhooks for Oracle Cloud Infrastructure - container registry

Looking for a solution to this use case
Docker image is pushed to Oracle Cloud Infrastructure - container registry (OCIR)
Jenkins has a webhook on the OCIR and Jenkins pipeline gets triggered as a new image is available in OCIR
How is it possible to have a webhook or some kind of mechanish for letting Jenkins know there is a new push to OCIR?
This blog post walks you thru how to set up a continuous pipeline that may be able to be used in full or in part to accomplish this
https://blogs.oracle.com/cloud-infrastructure/build-a-continuous-integration-pipeline-using-github,-docker-and-jenkins-on-oracle-cloud-infrastucture
We can listen to the OCI container registry events via Service Connector. You can configure Service Connector to invoke your custom functions on a specific event 'Container Image - Upload' under service name 'Registry'.
You can find a sample illustration below to perform some custom tasks during an image upload to OCI Container Registry.
Ref: https://github.com/RahulMR42/oci-devops-deploy-on-imageupload

Check CW log-group of a lambda through CLI

I have only programmatic access to AWS cloud watch and other services. I created a lambda and event source mapping with DynamoDB. It uploaded and ran successfully but I don't know which log group is it logging. Is there a way through the CLI to check which log group a lambda is configured with?

Running Cron on a specifc server in AWS

I am developing a project in spring. In this project I have written a cron job as well. I am going to deploy this on 4 AWS servers, but I want my cron job to run on only a single server (let's name that as admin server).
So here my question is how can I identify admin server uniquely. I was thinking to use the IP as identification but as far as I know IP is not static for AWS servers. is there any other way for identification so that I can put that check in my cron job code so that it will run only on admin server?
You can always start the admin instance with some user data as metadata or add a tag to your instance.
The metadata solution might be easier to integrate as you can just issue an unauthenticated HTTP request from within the instance to read the value. If that is a security concern for you, then you can go with the tag and use the API to retrieve the tag value.

How to create .audit file to upload a custom amazon AWS audit for Audit Cloud Infrastructure

I am new to nessus Audit Cloud Infrastructure. I have an infrastructure over AWS cloud with Unix based machine.
Audit Cloud Infrastructure requires an audit file without it an error is coming as below :-
Error (400): At least one audit must be added to this policy in the
'Compliance' section.
I have tried to search a sample .audit file which I can import for my policy but I haven't get anything.
As per the slide below, there is tool as i2a but I haven't able to get that and neither I am able to contact with support portal(may be because I am using the trial version for now) :-
https://www.slideshare.net/jderienzo/create-a-nessus-audit-file-30230893
If anyone have any source of .audit file please share it. specially for unix one. Or please atleast provide some link/video etc so I can create my own .audit file.
I have tried below link but it didn't work for me:-
https://www.tenable.com/blog/version-2-of-windows-compliance-checks-available-for-testing
Any help is appreciated in advance!!

service accounts configuration in template file in osb 11g

I need to configure service accounts for connecting to some of the services and for that we are required to configure the details in a template file.
So basically that means, I want to configure service account at run time.
We are using oracle service bus 11g.
Since I've never worked on service accounts before, any suggestions will be helpful.
I checked that we can do that at run time by fn-bea:lookupBasicCredentials XQuery function. but this is not what we want. We want to generated dynamically through the template files.

Resources