Add fields to expanded AWS CloudWatch log insights - amazon-cloudwatch

For my logs I parse the #message field to extract relevant data and display that in the log insights, however if you expand a row you get a list of fields & values which only shows the default ones of: #ingestionTime, #log, #logStream, #message & #timestamp.
Is there any way to add these custom fields parsed from the #message into this list?

Related

what value type to be used to check/unchecked a checkbox in PDI ETL Metadata injection

I have ETL Metadata Injection steps which injects the meta data to the CSV file input step present in the template. I am able to inject all the meta data like File name to read , delimiter and field names and type of fields but I am not able to inject the meta for check box values like "Header row present"? or "Running in parallel"?
Question: what kind of values I should inject to make use of these check box's to be checked or unchecked dynamically??
is it
1.) YES/NO
2.) yes/no
3.) 1/0
4.) enable/disable
5.) true/false
6.) TRUE/FALSE

SSRS - How to show external image based on URL inside column

I am trying to show images for products inside a basic report. The image needs to be dynamic, meaning the image should change based on the SKU value.
Right now I am inserting an image into a table, setting to external, and i've tried:
=Fields!URL.Value
=http://externalwebservername/sku= & Fields!SKU.Value
="http://externalwebservername/sku=" & Fields!SKU.Value
I do not get any images in my table.
My stored proc has all the data, including a URL with the image I wan't to show. Here is a sample of what the URL looks like:
http://externalwebservername/sku=123456
If I enter the URL in the field without "=" it will show that ONE image only.
How should I set up the expression to properly show the external image based on a dynamic URL? Running SQL 2016
Alan's answer should work, but in our environment we have strict proxy/firewall rules, so the two servers could not contact each other.
Instead we are navigating to the file stored on our storage system.
We altered the URL column to point to file path in the stored procedure. Insert image, set Source to External and Value set to [URL].
URL= file://server\imagepath.jpg
As long as the account executing the report has permissions to access the URLs then your 3rd expression should have worked.
I put together a simple example as follows.
I created a new blank report then added a Data Source. It doesn't matter where this points, we won't use it directly.
Then I created a dataset (Dataset1) with the following SQL to give me list of image names.
SELECT '350x120' AS suffix
UNION SELECT '200x100'
UNION SELECT '500x500'
Actually, these are just parameters for the website http://placehold.it/ which will generate images based on the size you request, but that's not relevant for this exercise.
We'll be showing three images from the following URLs
http://placehold.it/350x120
http://placehold.it/200x100
http://placehold.it/500x500
Next, create a table, I used 3 columns to give me more testing options. Set the DataSetName to DataSet1 if it isn't already.
In the first column the expression is just =Fields!suffix.Value
In the second column I added an image, set it's source property to External and the Value to ="http://placehold.it/" & Fields!suffix.Value
I then added a 3rd column with the same expression as the image Value so I could see what was being used as the image URL. I also added an action that goes to the same URL, just to check the URL did not have any unprintable characters in it that might cause a problem.
The basic report design looks like this.
The rendered result looks like this.

Formulating REST API call

Here is my query string
https://api.meetup.com/2/open_events?country=us&state=ca&city=sanfrancisco&category=34&page=10&group_photo&sign=true&&sign=true
I'm having no success reaching the group_photo resource.
In the docs they say:
group_photo
Returned when fields request parameter contains "group_photo".
Represents photo for the group hosting the event
I tried changing group_photo to group_photo=true but that didn't help.
Here's the console if you wanna test it
From the Meetup API documentation:
fields: Request that additional fields (separated by commas) be
included in the output
and
group_photo: Returned when fields request parameter contains
"group_photo". Represents photo for the group hosting the event
so you must add fields=group_photo and the call you gave above would be be something like:
https://api.meetup.com/2/open_events?country=us&state=ca&city=sanfrancisco&category=34&page=10&fields=group_photo&sign=true&sign=true

Pentaho Report Designer resource message

I'm currently using Pentaho 5.2.
I have 1 data field that comes from the .ktr file ( organization_name )
I have 1 resource-label ( org_name ) that is text/translated in the report itself.
I was wondering how I could combine the fields as 1 field. Someone advised me to fill in the resource-message field, but I'm not sure how and the Wiki doesn't have any information: http://wiki.pentaho.com/display/Reporting/resource-message
Any advice? Thanks in advance.
If you combine two fields, by using concatenate also you can achieve your requirement.
eg:- You have two fields i.e, Field1,Field2
Now, you can combine two fields like these.
=> Take another field i.e, text field and select that text field and go to Attributes tab and find out value and press + button and add these line.
=CONCATENATE([Field1];" - ";[Field2])
Thank you.
Venkatesh got me on the right path, what I did to translate the labels:
Text field with value:
=CONCATENATE([ResourceMesssageFormatExpression0];" - ";[organization_name])
==> You want to add a Resource Message Format Function ( under Data > Add Functions > Advanced functions ) that looks toward resource-identifier
With the Resource-Key of Pattern which contains the label: org_name
Then you can use this in the =CONCATENATE
This will get the label translated.

How to display custom fields in rally?

I have a ruby script that is trying to pull up some custom fields from Rally, the filter works just fine ( the filter contains one of the custom fields i want to pull up) but when I try to display it, it doesn't show up in the list (the value returned for all custom fields is blank, while appropriate values are returned for FormattedID, Name, Description).
Here's the link [link]http://pastebin.ubuntu.com/6124958/
Please see this post.
Do you fetch the fields?
What version of WS API are you using? If it is v2.0 is c_ prepended to the name of the field in the code?
How is the field spelled in your code and how that spelling compares to Name and Display Name of the field in UI?
There is another reason why custom fields might not appear (other than the versioning and 'c_' issues nickm mentioned). I just found this out after a ton of head banging. The Rally SDK's ui stuff will filter out all fields that are hidden (such as _ref, or other 'hidden' custom fields) so you cannot view them in your apps in grids, charts, etc. For example, when constructing a Rally.ui.grid.Grid, a class called Rally.ui.grid.ColumnBuilder is constructed and it executes a command on the columns of the chart that look like this:
_removeHiddenColumns: function (columns) {
return _.filter(columns, function (column) {
return !column.modelField || !column.modelField.hidden;
});
},
As you can see, if you try to display any fields that are hidden (like _ref for example) in a grid, the column gets removed. So, although you may be fetching the custom fields, they will not show up unless those fields are not 'hidden'.