<?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: How do I split JSON array, twitter hashtags? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440316#M76773</link>
    <description>&lt;P&gt;if I understand correctly you want hashtags from your raw data, then you can do regex at search time-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex max_match=0 "#(?&amp;lt;hashtags&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Oct 2018 15:26:24 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-10-22T15:26:24Z</dc:date>
    <item>
      <title>How do I split JSON array, twitter hashtags?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440315#M76772</link>
      <description>&lt;P&gt;i'm having a brain fart at the moment and trying to figure out how to get JUST the hashtags from all the posts. I know there's an app, but i'm sending a custom JSON object to Splunk and can't get it to pull the hashtags back out properly. &lt;/P&gt;

&lt;P&gt;considering the following JSON:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"twitter.handle":"DukeShawZy","twitter.msg":"RT @Patriots: Another TD catch for the RB with the most TD receptions in the @NFL.\n\n@SweetFeet_White | #NEvsCHI | #GoPats &lt;A href="https://t.co/OmXQ…&amp;quot;,&amp;quot;twitter.user&amp;quot;:&amp;quot;Andrew" target="test_blank"&gt;https://t.co/OmXQ…","twitter.user":"Andrew&lt;/A&gt; WS","twitter.hashtags":"[\"NEvsCHI\",\"GoPats\"]","twitter.created_at":"Sun Oct 21 19:04:48 +0000 2018","twitter.userid":"192657753","my.fetchtime":"2018-10-22 08:40:37"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i want table output of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;hashtags
-------------
NEvsCHI
GoPats
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 14:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440315#M76772</guid>
      <dc:creator>moorvogi</dc:creator>
      <dc:date>2018-10-22T14:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split JSON array, twitter hashtags?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440316#M76773</link>
      <description>&lt;P&gt;if I understand correctly you want hashtags from your raw data, then you can do regex at search time-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex max_match=0 "#(?&amp;lt;hashtags&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 15:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440316#M76773</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-22T15:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split JSON array, twitter hashtags?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440317#M76774</link>
      <description>&lt;P&gt;that works! thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 15:48:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440317#M76774</guid>
      <dc:creator>moorvogi</dc:creator>
      <dc:date>2018-10-22T15:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split JSON array, twitter hashtags?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440318#M76775</link>
      <description>&lt;P&gt;Glad it works:)&lt;BR /&gt;
I have converted comment to answer .please accept it.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 15:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-split-JSON-array-twitter-hashtags/m-p/440318#M76775</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-22T15:51:21Z</dc:date>
    </item>
  </channel>
</rss>

