<?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: json extract field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514631#M87201</link>
    <description>&lt;P&gt;thanks i got it. i have to manually add ] before ID and then it works. Thanks and i modified to have double quotes instead of single .&lt;/P&gt;&lt;P&gt;Also can you please explain why to substitute True to true and False to false ?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 07:51:31 GMT</pubDate>
    <dc:creator>surekhasplunk</dc:creator>
    <dc:date>2020-08-18T07:51:31Z</dc:date>
    <item>
      <title>json extract field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514581#M87191</link>
      <description>&lt;P&gt;i have one event entry like this indexed using props.conf entry like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not coming in json format its indexing only in raw format not sure why. Also because of that the column names ID, Name etc are not extracted automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{'ID': 123, 'Name': 'hostname', 'SetupComplete': True, 'Plugin': 'someplugin', 'PluginName': 'someplugin', 'DomainName': 'something', 'DomainEmail': '', 'dontknow': '', 'Address': '1.2.3.4', 'BackupIntervalString': 'Manual', 'LastBackupString': 'Never (1 uploaded)', 'LastBackupAttemptString': 'Never', 'NextBackupString': '', 'Protocol': 'scp', 'Location': '', 'BaselineState': 'N/A', 'LastBackupCompliant': False, 'LastBackupCompliantString': 'N/A', 'ComplianceScore': -1, 'RetryInterval': 45, 'NumRetries': 0, 'KeepVersions': 0, 'Owner': 'someone@something.com', 'State': 'Idle', 'Uptime': 'Not monitored', 'BackupStatus': 'OK', 'BackupDU': '100MB', 'Manufacturer': 'dontknow', 'Model': 'dontknow', 'AssetID': '', 'Serial': '', 'Firmware': '', 'ApprovedBackups': 0, 'CurrentApproved': False, 'NumBackups': 1, 'Disabled': 'No', 'DomainDisabled': False, 'ApprovedState': 'good', 'IsPush': False, 'Updated': '0001-01-01T00:00:00Z'},&lt;/P&gt;&lt;P&gt;Can you please help here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[example_json]&lt;BR /&gt;CHARSET = UTF-8&lt;BR /&gt;DATETIME_CONFIG = CURRENT&lt;BR /&gt;KV_MODE = json&lt;BR /&gt;TRUNCATE = 0&lt;BR /&gt;SEDCMD-removejunk1 = s/^\[//g&lt;BR /&gt;LINE_BREAKER = ([\r\n,]*(?:{[^[{]+\[)?){'ID&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;SEDCMD-remove_end = s/]$//g&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;/P&gt;&lt;P&gt;please tell me if i need to modify the props.conf entry or please help me with the extraction of fields.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 03:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514581#M87191</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2020-08-18T03:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: json extract field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514607#M87196</link>
      <description>&lt;P&gt;LINE_BREAKER=(.){'ID&lt;BR /&gt;SEDCMD-trim=s/'/"/g s/True/true/g s/False/false/g s/\]//&lt;BR /&gt;&lt;BR /&gt;Splunk can't parse '(single quote).&amp;nbsp;&lt;BR /&gt;Also, you should modify to valid JSON.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 06:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514607#M87196</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-18T06:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: json extract field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514619#M87198</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this and i get only 1 event indexed like json, the 1st event and next all events are like raw events i think because ] is missing at the end ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 07:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514619#M87198</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2020-08-18T07:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: json extract field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514621#M87200</link>
      <description>&lt;P&gt;sorry, I can see only one event. where is the others?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 07:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514621#M87200</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-18T07:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: json extract field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514631#M87201</link>
      <description>&lt;P&gt;thanks i got it. i have to manually add ] before ID and then it works. Thanks and i modified to have double quotes instead of single .&lt;/P&gt;&lt;P&gt;Also can you please explain why to substitute True to true and False to false ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 07:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514631#M87201</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2020-08-18T07:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: json extract field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514633#M87202</link>
      <description>&lt;P&gt;&lt;A href="https://www.json.org/json-en.html" target="_blank"&gt;https://www.json.org/json-en.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is the first time I've heard of it.&lt;/P&gt;&lt;P&gt;"(double quote)&lt;BR /&gt;true / false(lower)&lt;/P&gt;&lt;P&gt;`(single qute) and True/False is not valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 07:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-extract-field/m-p/514633#M87202</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-18T07:54:11Z</dc:date>
    </item>
  </channel>
</rss>

