<?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 to extract fields without a name from a JSON event? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444597#M77390</link>
    <description>&lt;P&gt;That event is not JSON ... it's a CSV, where one field happens to be JSON encoded within it. You should look into defining a sourcetype, that defines extractions based on delimiters.&lt;/P&gt;

&lt;P&gt;You can use the field extractor to help you with this definition:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXSelectMethodstep"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXSelectMethodstep&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXRenameFieldsstep"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXRenameFieldsstep&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Alternatively you could use regular expressions to skip through a certain number of groups of (Not comma, comma) until you come to your email addresses that you want to extract, but that seems more tedious.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 04:59:29 GMT</pubDate>
    <dc:creator>acharlieh</dc:creator>
    <dc:date>2018-07-16T04:59:29Z</dc:date>
    <item>
      <title>How to extract fields without a name from a JSON event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444596#M77389</link>
      <description>&lt;P&gt;Hi all, I'm using virtual index to access log files stored in Hadoop and then trying to extract certain values from JSON formatted file. But the the parsed file &lt;STRONG&gt;does not have name but only string values enclosed in&lt;/STRONG&gt; &lt;CODE&gt;""&lt;/CODE&gt;with comma between them so the &lt;CODE&gt;rex&lt;/CODE&gt; wouldn't work. So I was wondering if there's any possible solution to extract these. here's one example:(For example I'm extracting two email address)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11:14:45.000 AM "admin0f.online.lync.com","073e10cd-3910-46d9-95ee-e72ff0ed41dc","False","f24484cef680422ca872a99e47986e5d;add34fecd1;44a0bc0b3e","","7/13/2018 9:34:52 AM","7/13/2018 9:36:44 AM","jessica@example.com","alex@example.com","UCCAPI/16.0.9330.2118 OC/16.0.9330.2118 (Skype for Business)","UCCAPI/16.0.9330.2118 OC/16.0.9330.2118 (Skype for Business)","","","34872F8C-DBB6-53AD-8815-9328990D7FB8","B4DD4A65-1BFA-5E22-9194-F8D06EA27D9F","","","","","200","[IM]","{""RequestType"":""BYE"",""RequestTime"":""2018-07-13T09:36:44.016"",""ContentType"":""application/sdp;call-type=im"",""ResponseCode"":"""",""DiagnosticId"":51004,""ErrorCategory"":""Success"",""DiagnosticHeader"":""51004; reason=\""Action initiated by user\"";\""OriginalPresenceState=\""\""3000\""\"";CurrentPresenceState=\""\""3000\""\"";MeInsideUser=\""\""No\""\"";ConversationInitiatedBy=\""\""6\""\"";SourceNetwork=\""\""2\""\"";RemotePartyCanDoIM=\""\""Yes\""\""\""""} {""RequestType"":""BYE"",""RequestTime"":""2018-07-13T09:36:43.5572341"",""ContentType"":"""",""ResponseCode"":""200"",""DiagnosticId"":51004,""ErrorCategory"":""Success"",""DiagnosticHeader"":""51004; reason=\""Action initiated by user\""""}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2018 03:38:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444596#M77389</guid>
      <dc:creator>dannili</dc:creator>
      <dc:date>2018-07-16T03:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields without a name from a JSON event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444597#M77390</link>
      <description>&lt;P&gt;That event is not JSON ... it's a CSV, where one field happens to be JSON encoded within it. You should look into defining a sourcetype, that defines extractions based on delimiters.&lt;/P&gt;

&lt;P&gt;You can use the field extractor to help you with this definition:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXSelectMethodstep"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXSelectMethodstep&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXRenameFieldsstep"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/FXRenameFieldsstep&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Alternatively you could use regular expressions to skip through a certain number of groups of (Not comma, comma) until you come to your email addresses that you want to extract, but that seems more tedious.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 04:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444597#M77390</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2018-07-16T04:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields without a name from a JSON event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444598#M77391</link>
      <description>&lt;P&gt;Yes you are right.. I totally misinterpreted it. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 05:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444598#M77391</guid>
      <dc:creator>dannili</dc:creator>
      <dc:date>2018-07-16T05:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields without a name from a JSON event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444599#M77392</link>
      <description>&lt;P&gt;btw there's a typo in question... I meant exactly the regular expression, that is, &lt;CODE&gt;rex&lt;/CODE&gt;. &lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 05:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-fields-without-a-name-from-a-JSON-event/m-p/444599#M77392</guid>
      <dc:creator>dannili</dc:creator>
      <dc:date>2018-07-16T05:33:08Z</dc:date>
    </item>
  </channel>
</rss>

