<?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: Splunk AWS inspector errors in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-AWS-inspector-errors/m-p/453775#M6198</link>
    <description>&lt;P&gt;I'm going to answer this for anyone in the future that has this issue, below is the recommendation from Splunk support on how to fix this issue.&lt;/P&gt;

&lt;P&gt;I first disabled the aws_inspector input then made the changes and re-enabled it.&lt;/P&gt;

&lt;H2&gt;This sorted my issue and I was able to get inspector data in to Splunk. &lt;/H2&gt;

&lt;P&gt;The recommendation is to backup and delete the file labeled internals inside the checkpoint directory at: &lt;/P&gt;

&lt;P&gt;/$SPLUNK_HOME/var/lib/splunk/modinputs/aws_inspector &lt;/P&gt;

&lt;P&gt;The issue is a checkpoint file has been created which contains nothing which is trying to be read. &lt;/P&gt;

&lt;P&gt;Restart splunkd after performing this task. &lt;/P&gt;

&lt;HR /&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:08:44 GMT</pubDate>
    <dc:creator>FraserC1</dc:creator>
    <dc:date>2020-09-30T02:08:44Z</dc:date>
    <item>
      <title>Splunk AWS inspector errors</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-AWS-inspector-errors/m-p/453774#M6197</link>
      <description>&lt;P&gt;I am getting the below error in the splunk_ta_aws_inspector.log:&lt;/P&gt;

&lt;P&gt;level=ERROR pid=1042 tid=MainThread logger=splunk_ta_aws.modinputs.inspector pos=util.py:&lt;STRONG&gt;call&lt;/STRONG&gt;:163 |  | message="Failed to execute function=run, error=Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/3rdparty/splunktalib/common/util.py", line 160, in &lt;STRONG&gt;call&lt;/STRONG&gt;&lt;BR /&gt;
    return func(*args, **kwargs)&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/inspector/&lt;STRONG&gt;init&lt;/STRONG&gt;.py", line 53, in run&lt;BR /&gt;
    &lt;EM&gt;do_run()&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/inspector/&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;&lt;EM&gt;.py", line 30, in _do_run&lt;BR /&gt;
    aiconf.AWSInspectorConf, "aws_inspector", logger)&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/common/ta_aws_common.py", line 136, in get_configs&lt;BR /&gt;
    tasks = conf.get_tasks()&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/inspector/aws_inspector_conf.py", line 60, in get_tasks&lt;BR /&gt;
    _cleanup_checkpoints(tasks, config)&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/inspector/aws_inspector_conf.py", line 119, in _cleanup_checkpoints&lt;BR /&gt;
    internals = store.get_state("internals")&lt;BR /&gt;
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/3rdparty/splunktalib/state_store.py", line 155, in get_state&lt;BR /&gt;
    state = json.load(jsonfile)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/json/&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;&lt;EM&gt;.py", line 291, in load&lt;BR /&gt;
    **kw)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/json/&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;_.py", line 339, in loads&lt;BR /&gt;
    return _default_decoder.decode(s)&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/json/decoder.py", line 364, in decode&lt;BR /&gt;
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())&lt;BR /&gt;
  File "/opt/splunk/lib/python2.7/json/decoder.py", line 382, in raw_decode&lt;BR /&gt;
    raise ValueError("No JSON object could be decoded")&lt;BR /&gt;
ValueError: No JSON object could be decoded&lt;/P&gt;

&lt;P&gt;I have this exact same app/setup in two lower environments which working just fine and im getting data. Today when I logged in I noticed we are not longer receiving AWS logs in my production environment and this is the only error I can find. Again, I have not changed any configurations from the Splunk side and this was working the night prior. Any idea what would be causing the object error?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:29:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-AWS-inspector-errors/m-p/453774#M6197</guid>
      <dc:creator>arlombar</dc:creator>
      <dc:date>2020-09-30T00:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AWS inspector errors</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-AWS-inspector-errors/m-p/453775#M6198</link>
      <description>&lt;P&gt;I'm going to answer this for anyone in the future that has this issue, below is the recommendation from Splunk support on how to fix this issue.&lt;/P&gt;

&lt;P&gt;I first disabled the aws_inspector input then made the changes and re-enabled it.&lt;/P&gt;

&lt;H2&gt;This sorted my issue and I was able to get inspector data in to Splunk. &lt;/H2&gt;

&lt;P&gt;The recommendation is to backup and delete the file labeled internals inside the checkpoint directory at: &lt;/P&gt;

&lt;P&gt;/$SPLUNK_HOME/var/lib/splunk/modinputs/aws_inspector &lt;/P&gt;

&lt;P&gt;The issue is a checkpoint file has been created which contains nothing which is trying to be read. &lt;/P&gt;

&lt;P&gt;Restart splunkd after performing this task. &lt;/P&gt;

&lt;HR /&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-AWS-inspector-errors/m-p/453775#M6198</guid>
      <dc:creator>FraserC1</dc:creator>
      <dc:date>2020-09-30T02:08:44Z</dc:date>
    </item>
  </channel>
</rss>

