How to count messages with different or indifferent field values with graylog? - graylog2

I'm using graylog to visualize some http request data. I would like to have a widget which shows how many different IPv4 addresses have been accessing a website within the given time range.
The IPv4 address gets saved within a log entry in the field called "ip". See screenshot.
How can i realize that? The next target will be to create a widget which shows how many messages per ip address got logged within the given time range.

Depending on your actual use case, you can either use "Field Statistics" (cardinality is the number of unique values for that field) or "Quick Values" on the message field containing the IP address.

Related

List field is getting autofilled from nowhere

There is this SharePoint list that got his "Title" field set to raw Text, with default value "Order n°". Once a new entry is created, a unique number is concatenated to the text but it's not working properly so I have to fix it.
However, I have no idea where the unique number comes from. There is no clues on the list parameters, I checked the company Power Automate flows, they got nothing.
Do you have an idea where this could come from ?

Powerapps how submit a form with a reference to another sharepoint list?

I am working on a small COVID screening app. I have 2 lists in a single Sharepoint site:
BasicInfo:
ID (autogenerated by Sharepoint)
Name
Company
PersonalInfo:
BasicInfoID (a Lookup field to BasicInfo.ID)
Personal Phone
Personal Address
Company Phone
Company Address
All fields in both lists are required.
Creating the Powerapp, the BasicInfo form works as expected - records are populated in the Sharepoint list, and I can access the ID generated with BasicInfo.LastSubmit.ID after submission.
On the second screen of the app, I am having a hard time getting the "BasicInfoID" field populated. I am expecting to be able to set the value of BasicInfoID on the 2nd screen, then hide it, so the end user doesn't need to see (or populate) the value.
I have tried:
Setting the default value to BasicInfo.LastSubmit.ID, but I get an error of "Expected Record Value. The property on this control expects Record values. The rule produces Number values which are incompatible."
If I set the default value to BasicInfo.LastSubmit (no .ID), the form oddly submit - but the resulting data in the Sharepoint list doesn't show any value in the "BasicInfoID" field - it lists it as Required Info.
If I remove the automatically generated BasicInfoID field, I obviously get an error of "BasicInfoID: Field "BasicInfoID" is required."
I have added a Text field, assigned the DataField value to "BasicInfoID", set the default value to BasicInfo.LastSubmit.ID, but the form fails with the same error (BasicInfoID: Field "BasicInfoID" is required).
Thanks in advance!
When you do a LookUp from one SPO list (1) to another (2), the schema of the field in the list 1 is the same as the one returned by the Choices function. So in your scenario you can use this expression:
BasicInfoID: LookUp(Choices(BasicInfo, Id = BasicInfo.LastSubmit.ID))
The post at https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/ has some more detailed information about using complex columns in SharePoint (such as LookUp ones).
Hope this helps.

Netsuite UI: Adding a Custom Address Dropdown to Sales Order

has anyone figured out how to have a custom drop down on a sales order of the customer addresses.
When creating the custom field on a Sales Order, you will notice that when you select Address or Address Book, the FILTER USING fields do not show. Only 'country' shows when you select Address and nothing shows when you select Address Book
So to Recap:
I need to create a custom address drop-down field on a sales order that contains all of the customer addresses
It might seem like more work than its worth, but if you build it properly you should be able to re-use this code anywhere else you want the ability to add custom address selection drop downs.
In your before load script user event script you will want to add a new custom field of type 'select'.
To populate the values do a search against the customer record and grab the address fields you need (if this is a new record and the customer isnt set in the before load, you can pass this off to the client script by making a selection called 'REFRESH' or something similar that triggers a post sourcing function to make the update to the field select options).
Make sure to get at least the 'addressinternalid' and the 'addresslabel' fields from the customer (you will likely want them all just in case). Add the results to an array so that you can loop through it to build your custom field select options.
From there it would just be a matter of getting the user's selection and tying it to the correct address based on internal id.
I know I did not provide any specific code examples, but that would be your part of the game to play. Hope this helps, and good luck!

use ##SPID in side view defination in sybase ASE15

i am not able to use ##spid inside view defination.sybase doesnot allow.
how can i implement it inside view?. my requirement is: i have one table already existing in production server named MYTABLE. which have only one record at .so any select query form this table will give same output. now i want to create a table based on ip address corresponding value will be defines. and want to drop table MYTABLE and create a VIEW with the same name
where it will use ip address to show corresponding output to based on ip address.
can anybody have idea?
Try it this way:
create view your_view as
select spid from master..sysprocesses
where hostname = 'HOSTNAME'

Link two sharepoint columns together

I have two lists in SharePoint. One is a Server/Device list, the other is an IP Address list. I would like to pre-populate the IP Address list, and then, on the server/device list select the IP address(s) assigned to that server.
After that, I'd like the "Device" column on the IP Address list to reflect which device is using it.
Is it possible to do this without having to manually set the device on the IP Address list? I want it to automatically update based upon what the row device has set.
Step 1 - Use lookup in Device list
that looks up IPs from IP Address
list.
Step 2 - Create a Event Handler Code for Device List that listens to
the item updated event
public override void ItemUpdated(SPItemEventProperties properties)
Step 3 - When list item in
Device List has updated, your event handler (created in step 2) will assign that value to the matched
item in IP Address List
James

Resources