Oracle BPM (workflow) of both BPMN and BPEL flavors offers document integration as basic functionality as well it should. Human workflow is inherently tied to documents that support the activity in question. To provide this capability workflow accommodates documentation (aka attachments) in task based schemas and within the User Interface forms that support it. Workflow programs can pass documentation to tasks by carrying them in the schema as files or URL references. The BPM form documentation component then exposes those documents for viewing and allows for the addition and deletion of the same.
The default storage of the documents is made within the underlying workflow database schema but administrators can configure the workflow engine to leverage the content management data store as an alternate location. Information about this can be found in the SOA Administrator’s guide and numerous blogs.
The content storage alternative offers storage improvements over the original configuration but still is fairly limited in ability as compared to interacting with documentation within the content system itself. Though the ability to view existing documents, add or delete documents and define a few optional criteria exists with the BPM based user interface, more sophisticated elements of content such as managing revisions or viewing history are not available. You can also search for content documents and attach them to the workflow through the BPM attachments UI component. This may offer some integration but ultimately requires the users to be accessing both content and BPM interfaces in a fairly disjoint fashion to be somewhat effective. Shouldn’t there be a more effective mechanism?
When faced with a requirement to migrate a manual workflow system based on file folders the answer became obvious. If the workflow documentation was segregated into logical folders within content (basically into framework folders) then workflow could access the content UI based on that workflow associated folder. So instead of using the existing BPM document component, the URL specifying the framework folder was substituted as a go button or link in the BPM form which would render the content UI for that folder with the document listing. Adding new documents can likewise be provided by another go button tying it to the Add capability of the content URL so the users can click a button, add a title, browse and upload a document to the folder and workflow.
There was initially some concern over the lack of a document listing on the BPM form. The concern was easily allayed however by the common activity of separating the tabbed content document listing from the BPM form and simultaneously displaying it on a dual monitor system. Power users have ready access to the document listing with this configuration (as shown in the below diagram). Also the separation of the listing offers more real estate for the rest of the form. For my case I extended the comments component into the vacated space formerly reserved for the list of documents.
There are other benefits to leveraging the content UI straight from workflow. The first of course is the ability to leverage document versioning. Secondly, document access beyond the workflow lifespan is easily possible, as well as applying search metadata against the folders and documents to allow non-workflow association to be realized. For the out of the box workflow/content integration when workflow is complete, how do you get to those documents? For the direct integration outlined here, you are already creating the folder, so you can also apply some metadata for searching folder contents and you have the ability to find workflow documentation well beyond the life of the workflow.
This new configuration has some coordination required between workflow assignees and content roles. Workflow users require sufficient privileges to view, add/delete, and update content. This administration is simple enough and can be tied to the framework folder that is associated with the root element for the workflow activity.
So what could be classified as a drawback? For one, the simplistic ingestion of documents into the storage requires a bit more programming. The workflow system (whether BPMN or BPEL) must now leverage the UNIVERSAL_CREATE mechanism of content’s GenericSoapPort webservice to create logical folders for the workflow and then create/upload any documents coming into the workflow. The logical folders must be oriented around a unique key to be able to reference the folder throughout the workflow as the form must provide the specific folder’s URL for access of documentation. Also applying metadata for post workflow searches is a small overhead as well. So ultimately this is a little more complicated than the original but not prohibitively so.
So I have outlined a relatively straightforward integration of Oracle BPM and Content storage for workflow documentation. If your BPM project is aligned on folders or another logical key it may be an option for your documentation access.
BPM Workflow tab adjacent to Content Framework Folder Listing
The Inspyrus Invoice Automation solution utilizes WebCenter Forms Recognition (WFR) to identify the supplier on an invoice. WFR extracts the supplier by identifying all of the addresses on the invoice image. It then uses a fuzzy matching algorithm to compare the addresses on the invoice to those in the supplier pool generated from the ERP vendor data.
If WFR is able to confidentially identify the vendor associated with the invoice, it will be identified in the Inspyrus UI with no further verification needed by the end user. If, however, WFR is not confident it has identified the correct vendor, the end user will be required to review and validate or correct the chosen vendor in the Inspyrus UI.
In many years of implementing this tool, supplier extraction is consistently one of the most common reasons an invoice must be corrected. Fortunately, there is usually an explanation for the issue that can be resolved. In this article, we explore tips and tricks to diagnose and correct supplier extraction failures.
1. Poor Image quality
Image quality is critical to successful extraction of any field in WFR. If the Optical Character Recognition (OCR) fails to recognize the text of the vendor address correctly, this can cause the supplier to not be recognized. Image quality issues can usually be addressed by enforcing the following guidelines for images: images should be 300 dpi, black and white (not greyscale). They should be original images (not copies of previously printed images or electronically printed images). They should contain little to no handwriting.
2. Duplicate Supplier Addresses
In the ERP, there are multiple entries of the same address across different suppliers, supplier sites, and/or operating units. WFR is unable to distinguish which address is the “correct” one since all addresses are the same. All addresses are assigned the same confidence level and they system is unable to determine which should be chosen. In this case, supplier maintenance is needed to clean up supplier sites. Each supplier site should be a unique pay site address. Additionally, determining the operating unit at the point of ingestion can help with this issue.
3. Supplier Addresses too similar to the invoice Bill To or Ship To address
Typically the Bill To and Ship To addresses on an invoice are internal addresses. These are required to be excluded from the supplier pool that is used to processed general invoices. The query to the WFR view xx_ofr_suppliers_v should be modified so that ONLY external suppliers are included. Typically this is done by filtering on the vendor type and excluding those with a type of “Internal”. However, any criteria can be defined in the view. Often, supplier maintenance is needed to correctly categorize internal suppliers as such.
If Intercompany invoices are processed this will require additional configuration so that they are properly recognized.
4. ERP supplier address does not match the address on the invoice
The supplier address in the ERP system does not match any of the addresses listed by the vendor on the invoice (either in the header or the Remit To address). The best way to address this is to correct the address for the vendor in the ERP system so that it accurately reflects the invoice.
5. Remit to address is outside the address zone
This problem can be the most difficult to resolve.
OOTB, WFR only looks at vendor addresses on the first page of the image. This cannot be changed, it is mandatory that the vendor address must be on the first page of the document. This means that the first page of the image must be the first page of the invoice. Any supporting documents such as shipping documents, etc should be (if at all possible) attached to the record directly in Inspyrus instead of emailed in with the invoice image. If they must be included in the same image as the invoice, they should be placed after the invoice.
In addition to the first page requirement, WFR only looks at preconfigured zones of the first page to identify the vendor address. It does not look at the entire page. OOTB, WFR looks at the top 25% and bottom 20% of the page. While it is possible to modify this zone, it is advised to do so with extreme caution. Changing these recommended settings can have unintended side effects across the larger sampling of vendor invoices.
6. Supplier name found in the ERP database is very different from that found on the invoice
The vendor extraction performs a “fuzzy match” against name and address information found in the ERP database against what is found on the invoice. However, if the supplier name is drastically different this can cause the extraction to fail to have enough confidence to extract a valid match. Updating the supplier name in the ERP to match the invoice should resolve this issue.
Containerization and Splunk: How Docker and Splunk Work Together
By: Karl Cepull | Director, Operational Intelligence and Managed Services
Note: Much of the information in this blog post was also presented as a TekTalk, including a live demo of Splunk running in Docker, and how to use Splunk to ingest Docker logs. Please see the recording of the TekTalk at https://go.tekstream.com/l/54832/2017-03-30/bknxhd.
You’ve heard of Splunk, and maybe used it. You’ve heard of Docker, and maybe used it, too. But have you tried using them together? It can be a powerful combination when you do! But first, let’s review what Splunk and Docker are, just to set a baseline. Also, learn more about TekStream’s Splunk Services.
What is Splunk?
Splunk is the industry-leading solution for turning “digital exhaust” into business value. “Digital exhaust” refers to the almost unlimited amount of data being output by just about every digital device in the world today, such as application and web servers, databases, security and access devices, networking equipment, and even your mobile devices.
Usually, this data is in the form of log files. And, due to the volume being produced, it usually just sits on a hard drive somewhere until it expires and is deleted. It is only looked at when something goes wrong, and requires a lot of digging and searching to find anything useful.
Splunk changes all of that. It ingests those log files in near-real-time, and provides a “Google-like” search interface, making it extremely easy to search large amounts of data quickly. It also can correlate the information in myriad log files, allowing for an easier analysis of the bigger picture. Finally, it has a plethora of visualization and alerting options, allowing you to create rich reports and dashboards to view the information, and generate various alerts when specific conditions are met.
What is Docker?
Docker is also an industry leader. It is a container manager, that allows you to run multiple applications (or containers) side by side in an isolated manner, but without the overhead of creating multiple virtual machines (VMs) to do so. Containers give you the ability to “build once, run anywhere,” as Docker containers are designed to run on any host that can run Docker. Docker containers can also be distributed as whole “images,” making it easy to deploy applications and microservices.
Why use Splunk and Docker Together?
While there are many ways that you can use Splunk and Docker, there are two main configurations that we will address.
Using Docker to run Splunk in a Container
Running Splunk as a container in Docker has a lot of advantages. You can create an image that has Splunk pre-configured, which makes it easy to fire up an instance for testing, a proof-of-concept, or other needs. In fact, Splunk even has pre-configured images of Splunk Enterprise and the Universal Forwarder available in the Docker Hub for you to download!
Using Splunk to Monitor a Docker Container
In this configuration, one or more Docker containers are configured to send their logs and other operational information to a Splunk instance (which can also be running in another container, if desired!). Splunk has a free app for Docker that provides out-of-the-box dashboards and reports that show a variety of useful information about the events and health of the Docker containers being monitored, which provides value without having to customize a thing. If you are also using Splunk to ingest log information from the applications and services running inside of the containers, you can then correlate that information with that from the container itself to provide even more visibility and value.
Our Demo Environment
To showcase both of the above use cases, Splunk has a repository in GitHub that was used at their .conf2016 event in September of 2016. You can download and use the instructions to create a set of Docker containers that demonstrate both running Splunk in a container, as well as using Splunk to monitor a Docker container.
If you download and follow their instructions, what you build and run ends up looking like the following:
There are 5 containers that are built as part of the demo. The ‘wordpress’ and ‘wordpress_db’ containers are sample applications that you might typically run in Docker, and are instances of publicly-available images from the Docker Hub. Splunk Enterprise is running in a container as well, as is an instance of the Splunk Universal Forwarder. Finally, the container named “my_app” is running a custom app that provides a simple web page, and also generates some fake log data so there is something in Splunk to search.
By using a shared Volume (think of it as a shared drive) that the WordPress database logs are stored on, the Splunk Universal Forwarder is used to ingest the logs on that volume using a normal “monitor” input. This shows one way to ingest logs without having to install the UF on the container with the app.
The HTTP Event Collector (HEC) is also running on the ‘splunk’ container, and is used to receive events generated by the ‘my_app’ application. This show another way to ingest logs without using a UF.
Finally, HEC is also used to ingest events about the ‘wordpress’ and ‘wordpress_db’ containers themselves.
Here is a screenshot of one of the dashboards in the Docker app, showing statistics about the running containers, to whet your appetite.
How Does it Work?
Running Splunk in a Container
Running Splunk in a container is actually fairly easy! As mentioned above, Splunk has pre-configured images available for you to download from the Docker Hub (a public repository of Docker images).
There are 4 images of interest – two for Splunk Enterprise (a full installation of Splunk that can be used as an indexer, search head, etc.), and two for the Universal Forwarder. For each type of Splunk (Enterprise vs Universal Forwarder), there is an image that just has the base code, and an image that also contains the Docker app.
Here’s a table showing the image name and details about each one:
[av_table purpose=’tabular’ pricing_table_design=’avia_pricing_default’ pricing_hidden_cells=” caption=” responsive_styling=’avia_responsive_table’ av_uid=’av-45p3et4′] [av_row row_style=’avia-heading-row’ av_uid=’av-44ubijs’][av_cell col_style=” av_uid=’av-42379rc’]Image Name[/av_cell][av_cell col_style=” av_uid=’av-40tyji0′]Description[/av_cell][/av_row] [av_row row_style=” av_uid=’av-3ykv36w’][av_cell col_style=” av_uid=’av-3wqn9ag’]splunk/splunk:6.5.2[/av_cell][av_cell col_style=” av_uid=’av-dykufc’]The base installation of Splunk Enterprise v6.5.2 (the current version available as of this writing).[/av_cell][/av_row] [av_row row_style=” av_uid=’av-3ujljaw’][av_cell col_style=” av_uid=’av-3rxhjpk’]splunk/splunk:6.5.2-monitor splunk/splunk:latest[/av_cell][av_cell col_style=” av_uid=’av-3qmay0o’] The base installation of Splunk Enterprise v6.5.2, with the Docker app also installed.[/av_cell][/av_row] [av_row row_style=” av_uid=’av-3ouwpiw’][av_cell col_style=” av_uid=’av-3oas9a0′]splunk/universalforwarder:6.5.2 splunk/universalforwarder:latest[/av_cell][av_cell col_style=” av_uid=’av-3mi4kzc’]The base installation of the Splunk Universal Forwarder, v6.5.2.[/av_cell][/av_row] [av_row row_style=” av_uid=’av-3k2zd60′][av_cell col_style=” av_uid=’av-3hxaq5k’] splunk/universalforwarder:6.5.2-monitor[/av_cell][av_cell col_style=” av_uid=’av-3hjfr6w’]The base installation of the Splunk Universal Forwarder v6.5.2, with the Docker add-in also installed.[/av_cell][/av_row] [/av_table]
Get the image(s):
If you haven’t already, download a copy of Docker and install it on your system, and make sure it is running.
Next, create an account at the Docker Hub – you’ll need that in a bit.
From a command shell, log in to the Docker Hub using the account you created in step 2, using the following command:
docker login
Now, download the appropriate image (from the list above) using the following command:
docker pull <imagename>
Start the Container:
To run Splunk Enterprise in a Docker container, use the following command:
In both cases, the “docker run” command tells Docker to create and run an instance of a given image (the “splunk/splunk” image in this case). The “-d” parameter tells it to run it as a “daemon” (meaning in the background). The “-e” (or “–env”) parameters set various environment variables that are passed to the application in the container (more below), and the “-p” parameter tells Docker to map the host port 8000 to port 8000 in the container. (This is so we can go to https://localhost:8000 on the host machine to get to the Splunk web interface.)
So, what are those “-e” values? Below is a table showing the various environment variables that can be passed to the Splunk image, and what they do. If a variable only applies to Splunk Enterprise, it is noted.
[av_table purpose=’tabular’ pricing_table_design=’avia_pricing_default’ pricing_hidden_cells=” caption=” responsive_styling=’avia_responsive_table’ av_uid=’av-3etdg54′] [av_row row_style=’avia-heading-row’ av_uid=’av-3dvat6w’][av_cell col_style=” av_uid=’av-3baejo8′]Environment Variable[/av_cell][av_cell col_style=” av_uid=’av-3abv6vc’]Description[/av_cell][av_cell col_style=” av_uid=’av-37xszdk’]How Used[/av_cell][/av_row] [av_row row_style=” av_uid=’av-36dr8hk’][av_cell col_style=” av_uid=’av-bb77bc’]SPLUNK_USER[/av_cell][av_cell col_style=” av_uid=’av-33v59xk’]User to run Splunk as. Defaults to ‘root’.[/av_cell][av_cell col_style=” av_uid=’av-31pgf7c’][/av_cell][/av_row] [av_row row_style=” av_uid=’av-30crlco’][av_cell col_style=” av_uid=’av-2y5udeg’]SPLUNK_BEFORE_START_CMD
SPLUNK_BEFORE_START_CMD_n[/av_cell][av_cell col_style=” av_uid=’av-2wuwk2g’]Splunk command(s) to execute prior to starting Splunk. ‘n’ is 1 to 30. Non-suffixed command executed first, followed by suffixed commands in order (no breaks).[/av_cell][av_cell col_style=” av_uid=’av-2v1ry7c’]./bin/splunk <SPLUNK_BEFORE_START_CMD[_n]>[/av_cell][/av_row] [av_row row_style=” av_uid=’av-2ty06zs’][av_cell col_style=” av_uid=’av-a33etk’]SPLUNK_START_ARGS[/av_cell][av_cell col_style=” av_uid=’av-2q77nmw’]Arguments to the Splunk ‘start’ command[/av_cell][av_cell col_style=” av_uid=’av-2ouvoqw’]./bin/splunk start <SPLUNK_START_ARGS>[/av_cell][/av_row] [av_row row_style=” av_uid=’av-2ng4p54′][av_cell col_style=” av_uid=’av-2lgetm0′]SPLUNK_ENABLE_DEPLOY_SERVER[/av_cell][av_cell col_style=” av_uid=’av-2k3wuo8′]If ‘true’, will enable the deployment server function. (Splunk Enterprise only.)[/av_cell][av_cell col_style=” av_uid=’av-2hqufrc’][/av_cell][/av_row] [av_row row_style=” av_uid=’av-2haj5s8′][av_cell col_style=” av_uid=’av-2f8uze0′]SPLUNK_DEPLOYMENT_SERVER[/av_cell][av_cell col_style=” av_uid=’av-2czuyjc’]Deployment server to point this instance to[/av_cell][av_cell col_style=” av_uid=’av-2c8fazc’]./bin/splunk set deploy-poll <SPLUNK_DEPLOYMENT_SERVER>[/av_cell][/av_row] [av_row row_style=” av_uid=’av-29w4jfs’][av_cell col_style=” av_uid=’av-sv38o’]SPLUNK_ENABLE_LISTEN
SPLUNK_ENABLE_LISTEN_ARGS[/av_cell][av_cell col_style=” av_uid=’av-264rurs’]The port and optional arguments to enable Splunk to listen on. (Splunk Enterprise only)[/av_cell][av_cell col_style=” av_uid=’av-7n0z0o’]./bin/splunk enable listen <SPLUNK_ENABLE_LISTEN> <SPLUNK_ENABLE_LISTEN_ARGS>[/av_cell][/av_row] [av_row row_style=” av_uid=’av-23ke0u0′][av_cell col_style=” av_uid=’av-2282p3c’]SPLUNK_FORWARD_SERVER
SPLUNK_FORWARD_SERVER_n
SPLUNK_FORWARD_SERVER_ARGS
SPLUNK_FORWARD_SERVER_ARGS_n[/av_cell][av_cell col_style=” av_uid=’av-1zetxo8′]One or more Splunk servers to forward events to, with optional arguments. ‘n’ is 1 to 10.[/av_cell][av_cell col_style=” av_uid=’av-1ylthd4′]./bin/splunk add forward-server <SPLUNK_FORWARD_SERVER[_n]> <SPLUNK_FORWARD_SERVER_ARGS[_n]>[/av_cell][/av_row] [av_row row_style=” av_uid=’av-1wqapnc’][av_cell col_style=” av_uid=’av-1uuiifc’]SPLUNK_ADD
SPLUNK_ADD_n[/av_cell][av_cell col_style=” av_uid=’av-1tsluc8′]Any monitors to set up. ‘n’ is 1 to 30.[/av_cell][av_cell col_style=” av_uid=’av-1segprs’]./bin/splunk add <SPLUNK_ADD[_n]>[/av_cell][/av_row] [av_row row_style=” av_uid=’av-1q1zb14′][av_cell col_style=” av_uid=’av-1p3oyaw’]SPLUNK_CMD
SPLUNK_CMD_n[/av_cell][av_cell col_style=” av_uid=’av-1nb6umg’]Any additional Splunk commands to run after it is started. ‘n’ is 1 to 30.[/av_cell][av_cell col_style=” av_uid=’av-1kr63d4′]./bin/splunk <SPLUNK_CMD[_n]>[/av_cell][/av_row] [/av_table]
Splunking a Docker Container
There are 2 main parts to setting up your environment to Splunk a Docker container. First, we need to set up Splunk to listen for events using the HTTP Event Collector. Second, we need to tell Docker to send its container logs and events to Splunk.
Setting up the HTTP Event Collector
The HTTP Event Collector (HEC) is a listener in Splunk that provides for an HTTP(S)-based URL that any process or application can POST an event to. (For more information, see our upcoming TekTalk and blog post on the HTTP Event Collector coming in June 2017.) To enable and configure HEC, do the following:
From the Splunk web UI on the Splunk instance you want HEC to listen on, go to Settings | Data inputs | HTTP Event Collector.
In the top right corner, click the Global Settings button to display the Edit Global Settings dialog.
Usually, these settings do not need to be changed. However, this is where you can set what the default sourcetype and index are for events, whether to forward events to another Splunk instance (e.g. if you were running HEC on a “heavy forwarder”), and the port to listen on (default of 8088 using SSL). Click Save when done.
Next, we need to create a token. Any application connecting to HEC to deliver an event must pass a valid token to the HEC listener. This token not only authenticates the sender as valid, but also ties it to settings, such as the sourcetype and index to use for the event. Click the New Token to bring up the wizard.
On the Select Source panel of the wizard, give the token a name and optional description. If desired, specify the default source name to use if not specified in an event. You can also set a specific output group to forward events to. Click Next when done.
On the Input Settings panel, you can select (or create) a default sourcetype to use for events that don’t specify one. Perhaps one of the most important options is on this screen – selecting a list of allowed indexes. If specified, events using this token can only be written to one of the listed events. If an index is specified in an event that is not on this list, it is dropped. You can also set a default index to use if none are specified in an individual event.
Click Review when done with the Input Settings panel. Review your choices, then click Submit when done to create the token.
The generated token value will then be shown to you. You will use this later when configuring the output destination for the Docker containers. (You can find this value later in the list of HTTP Event Collector tokens.)
Configuring Docker to send to Splunk
Now that Splunk is set up to receive event information using HEC, let’s see how to tell Docker to send data to Splunk. You do this by telling Docker to use the ‘splunk’ logging driver, which is built-in to Docker starting with version 1.10. You pass required and optional “log-opt” name/value pairs to provide additional information to Docker to tell it how to connect to Splunk.
The various “log-opt” values for the Splunk logging driver are:
[av_table purpose=’tabular’ pricing_table_design=’avia_pricing_default’ pricing_hidden_cells=” caption=” responsive_styling=’avia_responsive_table’ av_uid=’av-1jjxlew’] [av_row row_style=’avia-heading-row’ av_uid=’av-1haqpnc’][av_cell col_style=” av_uid=’av-570188′]‘log-opt’ Argument[/av_cell][av_cell col_style=” av_uid=’av-1f2q1y0′]Required?[/av_cell][av_cell col_style=” av_uid=’av-1ckf8mg’]Description[/av_cell][/av_row] [av_row row_style=” av_uid=’av-h17g8′][av_cell col_style=” av_uid=’av-195z0mw’]splunk-token[/av_cell][av_cell col_style=” av_uid=’av-18lfk9k’]Yes[/av_cell][av_cell col_style=” av_uid=’av-163zm20′]Splunk HTTP Event Collector token[/av_cell][/av_row] [av_row row_style=” av_uid=’av-148f4m0′][av_cell col_style=” av_uid=’av-13g6bo8′]splunk-url[/av_cell][av_cell col_style=” av_uid=’av-11ix6l4′]Yes[/av_cell][av_cell col_style=” av_uid=’av-3iu6js’]URL and port to HTTP Event Collector, e.g.: https://your.splunkserver.com:8088[/av_cell][/av_row] [av_row row_style=” av_uid=’av-yaz0iw’][av_cell col_style=” av_uid=’av-wd6da0′]splunk-source[/av_cell][av_cell col_style=” av_uid=’av-u6ukxk’]No[/av_cell][av_cell col_style=” av_uid=’av-tclreg’]Source name to use for all events[/av_cell][/av_row] [av_row row_style=” av_uid=’av-r5zweg’][av_cell col_style=” av_uid=’av-p683fc’]splunk-sourcetype[/av_cell][av_cell col_style=” av_uid=’av-njmm2g’]No[/av_cell][av_cell col_style=” av_uid=’av-lpgxbs’]Sourcetype of events[/av_cell][/av_row] [av_row row_style=” av_uid=’av-kvllwo’][av_cell col_style=” av_uid=’av-j3fam0′]splunk-index[/av_cell][av_cell col_style=” av_uid=’av-hr81h4′]No[/av_cell][av_cell col_style=” av_uid=’av-fce6m0′]Index for events[/av_cell][/av_row] [av_row row_style=” av_uid=’av-elqtko’][av_cell col_style=” av_uid=’av-190slk’]splunk-format[/av_cell][av_cell col_style=” av_uid=’av-b7z8xk’]No[/av_cell][av_cell col_style=” av_uid=’av-9bq454′]Message format. One of “inline”, “json”, or “raw”. Defaults to “inline”.[/av_cell][/av_row] [av_row row_style=” av_uid=’av-sbdd4′][av_cell col_style=” av_uid=’av-63lqbc’]labels / env[/av_cell][av_cell col_style=” av_uid=’av-4m2nbc’]No[/av_cell][av_cell col_style=” av_uid=’av-22g914′]Docker container labels and/or environment variables to include with the event.[/av_cell][/av_row] [/av_table]
In addition to the above “log-opt” variables, there are environment variables you can set to control advanced settings of the Splunk logging driver. See theSplunk logging driver page on the Docker Docs site for more information.
Splunking Every Container
To tell Docker to send the container information for all containers, specify the Splunk logging driver and log-opts when you start up the Docker daemon. This can be done in a variety of ways, but below are two common ones.
If you start Docker from the command-line using the ‘dockerd’ command, specify the “–log-driver=splunk” option, like this:
If you use a GUI to start Docker, or don’t want to have to remember to specify the log-driver and log-opt values, you can create (or edit) the daemon.json configuration file for Docker. (See the Docker docs for information on where this file is located for your environment.) A sample daemon.json looks like this:
Either of the above options will tell Docker to send the container information for ALL containers to the specified Splunk server on the localhost port 8088 over https, using the HEC token that you created above. In addition, we have also overridden the default event format of “inline”, telling Docker to instead send the events in JSON format, if possible.
Splunk a Specific Docker Container
Instead of sending the container events for ALL containers to Splunk, you can also tell Docker to just send the container events for the containers you want. This is done by specifying the log-driver and log-opt values as parameters to the “docker run” command. An example is below.
The above example shows how to set and pass environment variables (“TEST”) and/or container labels (“location”), on each event sent to Splunk. It also shows how you can use the Docker template markup language to set a tag on each event with the container name and the container ID.
Hints and Tips
Running Splunk in a Container
As of this writing, running Splunk in a Docker container has not been certified, and is unsupported. That doesn’t mean you can’t get support, just that if the problem is found to be related to running Splunk in the container, you may be on your own. However, Splunk has plans to support running in a container in the near future, so stay tuned!
One of the advantages to running things in containers is that the containers can be started and stopped quickly and easily, and this can be leveraged to provide scalability by starting up more instances of an image when needed, and shutting them down when load subsides. A Splunk environment, however, is not really suited for this type of activity, at least not in a production setup. For examples, spinning up or shutting down an additional indexer due to load isn’t easy – it needs to be part of a cluster, and clusters don’t like their members to be going up and down.
Whether running natively, in a VM, or in a container, Splunk has certain minimum resource needs (e.g. CPU, memory, etc.). By default, when running in a container, these resources are shared by all containers. It is possible to specify the maximum amounts of CPU and memory a container can use, but not the minimum, so you could end up starving your Splunk containers.
Splunking a Docker Container
Definitely use the Docker app from Splunk! This provides out-of-the-box dashboards and reports that you can take advantage of immediately. (Hint: use the “splunk/splunk:6.5.2-monitor” image.)
Use labels, tags, and environment variables passed with events to enhance the event itself. This will allow you to perform searches that filter on these values.
Note that some scheduling tools for containers don’t have the ability to specify a log-driver or log-opts. There are workarounds for this, however.
Additional Resources
Below is a list of some web pages that I’ve found valuable when using Splunk and Docker together.
Imagine you’re outlining an Oracle Process Cloud Application that you need to build. You then realize you need the data that’s entered into your form to be passed to a Process, filtered through a Decision, and used as an input for a REST API call. That scenario could have you creating a Field, Data object, Decision input object, and a REST API request body. However, if you start by defining a Business Object that contains all the data you will need for these functions, you may find you only need one. Below describes how you can keep your data organized within your Process Cloud Application, and shorten the time needed to create and link these objects. Oracle PCS is extremely versatile and can help you leverage the Oracle Process Cloud optimally.
Creating Application Wide Business Objects With Oracle PCS
Define your Business Object to Allow the Most Versatility
A Business Object is a set of data you will be storing throughout your process. It may be two or three string values, a combination of dates, amounts, and personal data. Or, it may be a complex set of arrays. Business Objects can take many forms which allows for a wide range of business needs. The key for success is to have a versatile Business Object to avoid creating new Business Objects for data at different points in your workflow process.
For example, you want to create a form that will ask for a user’s name, address, phone number, and email. From this you will derive the user’s region where you can then perform a lookup to get the user’s account number. A shorter process, rather than having a Form Object with field values, a Decision Object for the region derived, and then an API Request Body to do the account lookup; it is best practice to create a single Business Object with all six values defined within it. Make sure to specify that account number is an array as the user may have more than one account.
Create your Business Object in your Process Cloud Application
There are multiple ways to create business objects within the Process Cloud
Creating New Business Objects
This option does not require any code or formatting and will walk you through creating your Business Object, step by step. For details on this option, Click Here.
Importing Business Objects – From XML Schema
If you have an xsd file for a web service you will be using, or if you have an XML Schema already written, this option allows you to import that file to define your attributes. For more information on this feature, Click Here.
Importing Business Objects – From JSON
If you know you will be using a REST API call within your process, this option allows you to paste in the JSON that will define your request body. You can also write your own JSON to define what attributes you will be using in this Business Object. Simply format your attribute as outlined below. The values are examples of the types of values you are expecting.
{ “Name” : “Your Name”,
“Phone_Number” : “123-555-9876”, “Address” : “123 Baker St, New York NY 54321”, “Email” : “[email protected]”, “Account_Number” : [{ “Account_Type”:”Customer”, “Account_Number” : 123123
Now that you have your attributes defined in your new Business Object, you can create a form in a snap. Whether you’re creating a Web Form (Oracle’s newest form builder) or a Basic Form (Frevvo), you can drag and drop your Business Object into your form and have the fields built out for you. Just follow the steps below:
Web Forms:
Create a New Web Form, or Edit one you’ve previously created.
From the Business Types Palette, drag and drop your new Business Object
All of the fields will appear as you outlined in your Business Object, including the ones your user will not be filling out.
Now you can modify the fields to the layout you prefer. You can also remove the fields you don’t want on your form.
Basic Forms:
Create a New Basic Form, or Edit one you’ve previously created.
Click on the Manage Business Objects icon in the Form Header menu.
In the Form Business Objects window, move your Business Object from the “Available” Column to the “Selected” Column.
After clicking “OK”, your business object will be available in the Data Sources Business Objects.
You can either click the green plus sign for the individual objects you wish to add to your form, or you can click the green plus sign for the entire object to create all fields.
Now you can modify the fields to the layout you prefer, as well as remove the unwanted fields.
Processes, Decisions, and Integrations
Throughout your application development process you will find many places where you need to define the type of input and output you will be expecting. Now that you have defined your Business Object, it can be used for any data object input or output.
Sub Processes: Inputs and Outputs
Decision Rules: Inputs and Outputs:
Integrations: Request Body and Response Body
As you can see, Business Objects can unify your Application Data and can significantly speed up the development process. By planning ahead and making smart choices for your Business Objects, you can create a complex Application simply.
Contact Us for more tips and tricks on developing smart Oracle Process Cloud Applications or general use cases for the Oracle Process Cloud.
If a tree falls in the woods, does the paper from that tree end up as a paper invoice in your company’s mailroom? Or worse, does this paper find its way from the mailroom to someone’s desk in accounts payable, only to wait… and wait… and wait for an action?
Does that falling tree make a sound? Most likely yes. It’s the sound of your early payment discounts floating away or the screams of yet another late payment charge. Accoutns payable challenges are a real problem. Learn more about challenges in the accounts payable process below.
Unfortunately, many companies experience the same accounts payable challenges:
While your particular business processes have evolved and progressed, your accounts payable methodology may still rely heavily on paper.
Paper dependency exists even though companies have an ERP system (or multiple ERP systems, such as E-Business Suite, PeopleSoft, and JD Edwards) that are supposed to handle the accounts payable process in an efficient manner.
Employees may only be proficient in one system and not others.
Other employees need to process or approve invoices, but they don’t have ERP authorization.
Maintaining the accounts payable methodology the same way “it’s always been done” is a risk.
Inspyrus Invoice Automation offers an improved user experience and rich toolset to streamline invoice data entry, focusing on the automation of invoice data input. This high level of automation will lower the number of data elements keyed, which in the end reduces the number of possible clerical errors.
Investments previously made in other areas of your business can be leveraged.
Integration points, based on standard defined points within your ERP, quickly retrieve the purchase order and vendor information. From there, it will match the data to the invoice often before a user has any visible interaction with the invoice.
Any current validation routines present in your ERP are honored, as data is validated before its delivery to the ERP for ingestion.
For example, a PeopleSoft voucher is not created until the data can be validated against your specific PeopleSoft implementation. The validation process occurs in real time, using web services to quickly determine data accuracy. This is a huge leap forward in processing efficiency.
Any existing approval hierarchies from the ERP can be reused for workflow approvals which can often be simply approved via email.
Your existing corporate security model and infrastructure can be used to enforce authentication and authorization of invoice information.
Invoice related documentation can be attached to the invoice, and subsequently viewed in the ERP.
Inspyrus understands that no ERP is ever deployed simply “out of the box.” It is likely that your ERP is no different than others except for specific changes tailored towards your business. The Inspyrus API takes these scenarios into account and offers a way to dovetail the software to your exact ERP.
While the debate rages about whether a tree falling in the woods makes a sound or not, there’s no question about your accounts payable workflow needing an update. Contact us today for some sound advice on turning your accounts payable system into an unrealized payday. You can also check out our previous Webinar about Inspyrus here.
Contact William or TekStream today to learn more about challenges in the accounts payable process.
“If you are never scared or embarrassed or hurt, it means you never take any chances.” – Julia Sorel
Why is project risk management important? Risk Management is not a pleasant topic, and some people would like to avoid it. Many times when a Project Manager brings up the topic of Risk Management, the participants get that glossy look in their eyes and zone out. Most of the time it is hard to find someone who is willing to even discuss the topic of risk, but Risk Management is vital to the success of a project.
Whyis Risk Management Important in Project Management?
Experience proves that when a risk analysis is conducted for a certain project; problems are reduced by a staggering 90%. In addition, in the article by the Project Management Institute, “Pulse of the Profession 2015,” it is stated that “83 percent of high performers report frequent use of risk management practices, compared to only 49 percent of low performers.” Managing risk helps ensure that your business is performing at an optimal level. However, risk management is not a one and done type of deal. Do you go to a doctor only once in your life time for a physical? Of course not. You go on a regular basis to help detect any problems at the earliest opportunity. The same is true with risk; you take an assessment at the beginning and you regularly assess the risk throughout the life of the project. Some risks will no longer be pertinent or will have been mitigated, while others may come into play.
The following are a few benefits of risk management:
Increased operational efficiency by mitigating exploits that could normally drain organizational resources responsible for remediation
Increased revenue due to increased operational efficiency
Decreased number of incidents to remediate internally or with a customer/vendor
Clearer understanding of current threat climate
Creation of a risk-focused culture within the organization
Risk management needs to be given greater authority during the life a project, and Senior Executives must lead risk management from the top. Risk management should gain enough attention in the organization at a senior level, so that the organization can properly evaluate and elevate the risks when needed. In addition, risk needs to be adaptive rather than static. As previously mentioned, if the risk analysis is only assessed at the beginning of the project and never again, you may be monitoring risks that are no longer relevant and miss the new risk signals. For example, if the union employees are negotiating a new contract while your project is being conducted, a risk could be the union goes on strike and could prevent part (or all) of your project from moving forward. Once that contract is signed, the risk goes away and no longer needs to be monitored. At the same time, a major storm is developing on the west coast and is expected to hit your area which could impact your project. If you are not evaluating all potential risks during the life of the project, you will be unprepared for any new risks.
The business division is accountable for risk mitigation decisions. Therefore, they should always be educated on the project at hand. They should also be subject matter experts and accountable for managing and coordinating the process, but are not the decision makers. Senior leaders are responsible for making the decision of how a risk should be mitigated. Or, when a risk issue is realized, they have the authority to reduce or mitigate the risk based upon the core business objectives.
How does TekStream manage risk?
Project Risks are items that have the likelihood to occur and impact a project. Risk Issues are risks that have already occurred. Using JIRA® to help us manage risk, TekStream has standardized the risk management process which in turn allows our customers to monitor the risks and evaluate/implement risk strategies. This creates a knowledge base of risks across the project and enables transparency into the Risk Management process.
In our Oracle WebCenter projects (on site, PaaS, and IaaS), we start to manage risk by conducting a QuickStream process to gather requirements before developing the Phase 1 project plan. During the discovery and define steps we look at all aspects of the project from hardware to resources to human interaction to software and evaluate, with the client, any risk that may come up in the project. This gives the customer the first of many reviews of the risks to be both aware of and possibly mitigate the risk before the full project kicks off.
My hope is the reader will come away with a better understanding of why risk management is as important to us and your company on their next project. If you have any questions on risk management, please reach out to me and we look forward to helping you on your next project.
Contact Jonathan or TekStream Today to learn more.
In February of 2016, Cordell and Thrond from Oracle support conducted their own presentation: https://community.oracle.com/thread/3898699 In the recording or in the slide show (see slide 33 here: https://jonathanhult.com/blog/wp-content/uploads/2016/02/AW-WCC-Cloud-docs-V9_C.pdf) you can see an informative screenshot of the ADF content UI with Oracle Documents Cloud folders built right into the interface, creating a hybrid cloud solution. I’ve been waiting for that particular hybrid cloud solution, and now it’s available!
Recently, while doing a demo of WCC (Version:12.2.1.2.0-2016-10-06 07:41:00Z-r148019 (Build:7.3.5.186)) running on Oracle’s cloud compute environment, I ran across a component called Oracle Documents Folders.
I enabled this component in the native UI and restarted.
After restarting, I saw a new menu in the Administration menu:
I configured the Oracle Documents Cloud Service information. However, once I received a hostname verifier error, I had to disable it in the WLS admin server (Consult IT to verify if this is acceptable for a production environment).
After testing and then saving, I restarted the WLS admin server, the WCC server, and the ADF content UI. I logged in as a test user and verified the preferences:
Note the message regarding the link between Oracle Documents Cloud Service and WCC. In order to make the hybrid cloud solution work, the email address in WCC needs to match the Oracle Documents Cloud Service username. After that was complete, I was able to navigate under an Enterprise Library and create an Oracle Documents Cloud folder. This instantly showed in my cloud environment. From there, I could drag and drop items into my Oracle Documents Cloud folder right from my WCC ADF UI, and vice versa.
I now have a window into my Documents Cloud interface right from WCC using this simple hybrid cloud solution. It is now easy for me to search and find a template or a form in WCC via the ADF UI, download it and then put it in the Oracle Documents Cloud. Right from the UI, I can also share the document via a public link within seconds. Once a cloud user edits that document and uploads it again, or adds more content, the hybrid cloud solution makes it instantly available in the context of my browsing experience of WCC.
On the Oracle Cloud Document service side, it creates the folder with the username in the path:
Documents > Mary > A312D3148815662CA5B70F9F837EDFB0 >BrandonTest
It’s pretty easy to set up, but if it’s even quicker to let us show it to you!
In the past customers have complained about the limited search feature related to expired content. Normal users, and especially power users, may have a need to retrieve an expired content item but cannot easily recover or locate it. This may discourage users from using the expiration feature in WCC. As you may know, when expiring an item, the content is kept in the system. However, in the case of Oracle Text Search Engine, pull the item from the collection to reduce the search collection size. This can help with collection builds (including fast rebuilds) and search speeds.
While many of the WCC user base is transitioning to the new sleeker content UI, it is not uncommon for power users to continue using the native UI for more complex functions. An example of a complex function is locating expired content. In order to do a search for expired items, a user will navigate to Content Management -> Expired Content. In the screen shot below, the user is presented with two date fields to filter the recently expired items. If there are many expired items, or the time frame of the expiration is not known this is not very helpful.
How can this process be simplified for the user? A simple customization is in order!
Introducing the TSExpiredSearch component: This component adds a button in line with the other buttons that users normally use. This button switches the repository and goes after expired content items instead of the OTS search repository (or other active content item repository). You can use the standard search, profile search and even query builder pages and leverage the expired search functionality as this new ‘Expired Search’ button is added to a common resource where the out of the box buttons are seen. With the button in place, the normal metadata fields can be leveraged and all the existing rules and profile logic is in place to help the user locate the expired content.
The expired search feature leverages the Repository parameter and sets it to ‘ExpiredContent’. The generated query uses the search engine: ‘DATABASE.METADATA.ALLDOCS.ORACLE’. Therefore, the user must use ‘Matches’ and not run Full-Text Searches. This validation is included in the component, as shown below:
This component has been tested on 11.1.1.8.0, 11.1.1.9.0, and 12.2.1.0.0. It even fixes a breadcrumb bug in 11.1.1.9.0. If you would like to use it we’d love to give it to you! Please fill out the contact form below and we will send it right away.
Once you receive your component, you will need to install and enable it using the admin server –> component manager -> advanced component manager options. Hopefully this will improve user search experience and even encourage users to clean up the active collection.
Fill out the following form to download the TSExpiredSearch component:
Creating a Single Item Content Presenter Template in WebCenter Portal 12c (12.2.1)
By: Abhinand Shankar | Technical Architect
The WebCenter Portal (WCP) implementations I have worked on include an integration with WebCenter Content (WCC). WCC managed the creation of the content items through Site Studio. WCP handled the presentation that covered the content on the web page that was finally rendered. This was done through Content Presenter Templates.
In 11g, the round trip development of the templates involved downloading a DesignWebCenterSpaces application that was preconfigured for managing the assets. The release of 12c brought changes to this process. JDeveloper is now built in with the application template to create the portal assets.
When creating a portal asset project, you have the option to select the asset type as Content Presenter Template.
This generates the project and all the necessary artifacts.
In this example, SampleContentPresenter.jsff contains the actual code. You can deploy the asset to the portal managed server directly from JDeveloper or create an AAR file and upload it. It is now available when configuring a Content Presenter task flow on the portal.
You will notice that the template is available only when the content source is a list of items and not for a single item. A look at assetDef.xml shows that it is created as a list template by default.
The application creation wizard does not give you an option to select the type of template. Therefore, attempting to update assetDef.xml throws an error.
In order to create a presenter template for a single item, create the application with the defaults and deploy it to the managed server. Log into portal administration and from the assets page download the template. Explode the archive and you should see a file called asset-entities.xml under the folder contentPresenter-s-gsr90079447_922e_48ff_a483_0c496a20c1c9 (the folder name contains a guide).
Asset-entities.xml contains the definition for the template and is by default as shown below:
Update this section as follows:
Make sure to update the jsff file to use the tag for a single item content presenter template.
Archive the files and deploy the AAR file. The template should now be available for a single content item.
Note: After deploying the template, you may have to uncheck the available box and then check it again before it shows up in the drop down.
As a project manager, I love the beginning of a new project. I always look forward to having that first kickoff meeting with your team where everyone is excited to tackle a new challenge. As a project manager, you work on ensuring everyone that a great idea is in store for them for next several weeks or months.
When working in a firm like TekStream, project managers are often involved in the sales cycle. Therefore, we have a solid plan on how to deliver the project. With any project, our ultimate goal is to deliver a solution that our customers are excited about and that will add value to ultimately improve their business processes.
How does this relate to managing your project’s budget? Easy, none of us have a crystal ball or can predict the future. The status of the project’s budget helps us keep our finger on the pulse of how the project is tracking and ultimately how we are driving customer satisfaction. A project that is running over budget can be warning signs of issues such as scope creep, improper resource mix, or even not being able to meet delivery timelines promised.
The ultimate goal of a project manager is to deliver a project on time, on or under budget, that meets the customer’s needs. If a project goes over budget (which can happen for numerous reasons) the project is not considered financially successful and may not deliver the solution a customer expected in the timeframe they specified.
Here are a few strategies for successfully managing a project’s budget:
Manage Project Scope
Without knowing all of the variables at the beginning of a project there is always the possibility of unplanned work finding its way into the project plan. Either customers change their minds after design or development has started, or the team uncovers some additional work that needs to be addressed. Scope changes are considered okay if at the end of the day it helps us deliver a better solution. The key is to minimize the impact it has on the budget and the timeframe of delivery. Communicating these changes up front to the customer in a timely manner helps us determine if this extra work is really necessary. If it is, a Project Change Requests (PCRs) should be executed for work that was not covered in the project’s initial scoping efforts. PCRs authorize additional funding to cover the cost of extra work, and keep the project at its new budget.
Manage the Plan in a Timely Manner
The key to this strategy is to review your project plan often and ensure it reflects what is happening “on the ground”. This is done in a few ways. The first way is to compare all the tasks that were needed to be completed in a certain time span (I do this on a weekly basis) against what has actually been completed. This helps assess what was supposed to be completed and if any further reprioritization is needed for the work that still waiting completion. If it looks like tasks are being finished earlier than anticipated, then that may allow for a buffer in case other tasks take longer. Or, more importantly if tasks are taking longer to complete, this may be a warning sign of scope creep or the need to change that resource working on the task. Either way, these overruns need to be escalated with management in a timely manner and communicated to the customer in case it jeopardizes the ability to deliver a project on time.
Manage Resources
Meeting with your project team regularly will also help ensure the project budget stays intact since your team members will contribute to the project costs as well as drive revenue (as they record billable hours). Weekly team meetings help with the process of reviewing the tasks needing completion as well as informing the team of next steps. Sometimes, these meetings uncover the need to add extra team members or swap out tasks between team members to maintain the project budget and timeline. Typically, the project manager owns managing the project plan. However, the plan should be reviewed regularly with the team to assess if the project is on track for on time delivery and help to ensure everyone is being utilized effectively. Not only does this help ensure the plan is reflecting what is actually happening “on the ground,” but provides a shared sense of responsibility amongst the team for a successful project delivery.
Hopefully you have noticed that communication is the common theme in the above strategies. The project budget helps provide the data we need in order to communicate changes to scope, not only to customers, but to management and the project teams as well. It also uncovers resourcing opportunities/challenges and ultimately helps asses if we are going to deliver a project on time and on or under budget. The project budget is a living, breathing animal and needs to be reviewed regularly. In my experience, project managers who follow the steps above have a good grasp on their budgets throughout the life of their projects and are able keep customers and management happy.