<?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 not formatting AMP logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-formatting-AMP-logs/m-p/682896#M114014</link>
    <description>&lt;P&gt;At search time, you could use spath to navigate past the "event:" part of the log:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;yoursearch&amp;gt;
| spath path=event output=_raw&lt;/LI-CODE&gt;&lt;P&gt;However you may want a solution that does not require spath on every search. You can configure your indexing tier to remove the "event:" part of the log, so that it directly shows you the useful fields without needing to be expanded.&lt;/P&gt;&lt;P&gt;On the indexing tier, make a props.conf file in an app e.g.&lt;BR /&gt;/opt/splunk/etc/apps/yourappname/local/props.conf&lt;/P&gt;&lt;P&gt;Make this stanza:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[cisco:amp:event]
SEDCMD-RemoveEventKey = s/{"event":\s*//
SEDCMD-RemoveLastBracket = s/}$//&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;(and more stanzas for other sourcetypes you would like this change to apply to)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 20:08:57 GMT</pubDate>
    <dc:creator>marnall</dc:creator>
    <dc:date>2024-04-02T20:08:57Z</dc:date>
    <item>
      <title>Splunk not formatting AMP logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-formatting-AMP-logs/m-p/682787#M114013</link>
      <description>&lt;P&gt;I will preface by saying I am very new to using Splunk. We have recently did a rebuild of our environment and I noticed that one of our log sources does not return formatted logs the same way our other log sources do. Whenever I try and do a query for AMP (Cisco Secure Endpoint) I have to click 'Show as raw text' to see any data which does not seem right to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to extract fields using Rex as well and it just does not seem to be working and I'm not sure if it has something to do with how the logs are displaying when I do a query. Could someone point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Endpoint.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30031i8745D162DE7524C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Endpoint.PNG" alt="Endpoint.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Endpoint_Rawmessage.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30032iECA04BF04DBD143D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Endpoint_Rawmessage.png" alt="Endpoint_Rawmessage.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 17:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-formatting-AMP-logs/m-p/682787#M114013</guid>
      <dc:creator>jaridaycock</dc:creator>
      <dc:date>2024-04-02T17:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not formatting AMP logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-formatting-AMP-logs/m-p/682896#M114014</link>
      <description>&lt;P&gt;At search time, you could use spath to navigate past the "event:" part of the log:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;yoursearch&amp;gt;
| spath path=event output=_raw&lt;/LI-CODE&gt;&lt;P&gt;However you may want a solution that does not require spath on every search. You can configure your indexing tier to remove the "event:" part of the log, so that it directly shows you the useful fields without needing to be expanded.&lt;/P&gt;&lt;P&gt;On the indexing tier, make a props.conf file in an app e.g.&lt;BR /&gt;/opt/splunk/etc/apps/yourappname/local/props.conf&lt;/P&gt;&lt;P&gt;Make this stanza:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[cisco:amp:event]
SEDCMD-RemoveEventKey = s/{"event":\s*//
SEDCMD-RemoveLastBracket = s/}$//&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;(and more stanzas for other sourcetypes you would like this change to apply to)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 20:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-formatting-AMP-logs/m-p/682896#M114014</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-04-02T20:08:57Z</dc:date>
    </item>
  </channel>
</rss>

