Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

IP get information of

Block is used to obtain expanded information about the IP address. Block containing data type IP address is connected to the input.

Block required ip typed value as an input on right side. This value is required.

In case provided value is not IP address type block returns None. Otherwise returns value contained in provided variable.

Block XML representation

XML representation of ip_subscript block:

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="ip_subscript">
    <field name="INFO">PTR</field>
    <value name="IP">
      <block type="ip">
        <field name="IP">0.0.0.0</field>
      </block>
    </value>
  </block>
</xml>

Example of visual representation

Block "IP subscript"

Block “IP subscript”

Example of block usage

Output from the block is text string with selected information about IP address.

Block is used on the “set ip_city to” row in example:

  • Value of the key “ip” is obtained from the “item” dictionary,
  • Value is converted to the IP address data type and transmits to the “get information of” block,
  • String “Mountain View” is the result.
Example of "IP subscrip" block

Example of “IP subscrip” block

Input data

{
  "user": "administrator",
  "ip" : "8.8.8.8"
}

Processing result

Results of "IP subscript" block

Results of “IP subscript” block