<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Polling JSON Format for Okta in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/241991#M96532</link>
    <description>&lt;P&gt;Hi Xavier,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to use this as extrator "*.ip_ranges[].{indicator:@}", but the AF minemeld doesnt allow me to click OK. I would like to extract everything from the Okta website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Keng Seng&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 08:44:58 GMT</pubDate>
    <dc:creator>KengSeng</dc:creator>
    <dc:date>2018-12-04T08:44:58Z</dc:date>
    <item>
      <title>Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/235763#M96529</link>
      <description>&lt;P&gt;I am trying to create a prototype for a Miner that pulls IP's from a JSON formatted file. I have looked at the documentation for setting up a JSON miner (&lt;A href="https://live.paloaltonetworks.com/t5/MineMeld-Articles/Using-MineMeld-to-extract-indicators-from-a-generic-API/ta-p/218757" target="_blank"&gt;https://live.paloaltonetworks.com/t5/MineMeld-Articles/Using-MineMeld-to-extract-indicators-from-a-generic-API/ta-p/218757&lt;/A&gt;) and I am having little luck as the error messages in the logs are saying there is a parsing error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File "/opt/minemeld/engine/0.9.48.post1/local/lib/python2.7/site-packages/minemeld/ft/basepoller.py", line 606, in _polling_loop&lt;BR /&gt; ipairs = process_item(item)&lt;BR /&gt; File "/opt/minemeld/engine/0.9.48.post1/local/lib/python2.7/site-packages/minemeld/ft/json.py", line 192, in _process_item&lt;BR /&gt; indicator = item[self.indicator]&lt;BR /&gt;TypeError: string indices must be integers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Config looks like the following:&lt;/P&gt;
&lt;P&gt;age_out:&lt;BR /&gt; default: null&lt;BR /&gt; interval: 257&lt;BR /&gt; sudden_death: true&lt;BR /&gt;attributes:&lt;BR /&gt; confidence: 100&lt;BR /&gt; share_level: green&lt;BR /&gt; type: IPv4&lt;BR /&gt;extractor: preview_cell_2&lt;BR /&gt;indicator: ip_ranges&lt;BR /&gt;source_name: aws.S3&lt;BR /&gt;url: &lt;A href="https://s3.amazonaws.com/okta-ip-ranges/ip_ranges.json" target="_blank"&gt;https://s3.amazonaws.com/okta-ip-ranges/ip_ranges.json&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone assist?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:30:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/235763#M96529</guid>
      <dc:creator>doliver1</dc:creator>
      <dc:date>2018-10-17T15:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/237253#M96530</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/62720"&gt;@doliver1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your extractor/indicator combination produces an array of strings instead of an array of objects (you can verify it at &lt;A href="http://jmespath.org/" target="_self"&gt;http://jmespath.org/&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[
  "3.120.18.145/32",
  "3.120.73.242/32",
  "3.120.77.98/32",
  ...
]&lt;/PRE&gt;
&lt;P&gt;You need the &lt;EM&gt;extractor&lt;/EM&gt; to generate an array of objects and tell with the &lt;EM&gt;indicator&lt;/EM&gt; which property in each object inside the extracted array contains the indicator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the &lt;EM&gt;extrator &lt;/EM&gt;"preview_cell_2.ip_ranges[].{indicator:@}" that will produce the following array of objects:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[
  {
    "indicator": "3.120.18.145/32"
  },
  {
    "indicator": "3.120.73.242/32"
  },
  {
    "indicator": "3.120.77.98/32"
  },
...
]&lt;/PRE&gt;
&lt;P&gt;and use as "indicator" as &lt;EM&gt;indicator&lt;/EM&gt; or just remove it as that is its default value.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 08:47:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/237253#M96530</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-10-26T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/237611#M96531</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/6710"&gt;@xhoms&lt;/a&gt; thanks for the catch on that. It works perfectly now.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 16:19:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/237611#M96531</guid>
      <dc:creator>doliver1</dc:creator>
      <dc:date>2018-10-29T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/241991#M96532</link>
      <description>&lt;P&gt;Hi Xavier,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to use this as extrator "*.ip_ranges[].{indicator:@}", but the AF minemeld doesnt allow me to click OK. I would like to extract everything from the Okta website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Keng Seng&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 08:44:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/241991#M96532</guid>
      <dc:creator>KengSeng</dc:creator>
      <dc:date>2018-12-04T08:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/241997#M96533</link>
      <description>&lt;P&gt;I used the ubuntu VM is working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table table-condensed"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;age_out&lt;/TD&gt;
&lt;TD&gt;
&lt;UL&gt;
&lt;LI&gt;default:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;null&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL&gt;
&lt;LI&gt;interval: 257&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL&gt;
&lt;LI&gt;sudden_death: true&lt;/LI&gt;
&lt;/UL&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;attributes&lt;/TD&gt;
&lt;TD&gt;
&lt;UL&gt;
&lt;LI&gt;confidence: 100&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL&gt;
&lt;LI&gt;share_level: green&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL&gt;
&lt;LI&gt;type: IPv4&lt;/LI&gt;
&lt;/UL&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;extractor&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;*.ip_ranges[].{indicator:@}&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;indicator&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;indicator&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;url&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;&lt;A href="https://s3.amazonaws.com/okta-ip-ranges/ip_ranges.json" target="_blank"&gt;https://s3.amazonaws.com/okta-ip-ranges/ip_ranges.json&lt;/A&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 04 Dec 2018 09:19:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/241997#M96533</guid>
      <dc:creator>KengSeng</dc:creator>
      <dc:date>2018-12-04T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/242001#M96534</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/57199"&gt;@KengSeng&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AF-MM has a different UI and may have a different YAML validator. Try quoting the string ("*.ip_ranges[].{indicator:@}"). It should work with that.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 10:12:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/242001#M96534</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-12-04T10:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/242003#M96535</link>
      <description>&lt;P&gt;Thanks Xavier, it works!!!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 10:52:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/242003#M96535</guid>
      <dc:creator>KengSeng</dc:creator>
      <dc:date>2018-12-04T10:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Polling JSON Format for Okta</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/288758#M96536</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;("*.ip_ranges[].{indicator:@}") doesnt pull any indicators for me , tried also&amp;nbsp;&amp;nbsp;(*.ip_ranges[].{indicator:@}), same thing I am using&amp;nbsp;VERSION: 0.9.50&amp;nbsp; and 0.9.52&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:40:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/polling-json-format-for-okta/m-p/288758#M96536</guid>
      <dc:creator>niuk</dc:creator>
      <dc:date>2019-09-17T12:40:01Z</dc:date>
    </item>
  </channel>
</rss>

