<?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: Cisco ice parse fields problem in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562930#M8467</link>
    <description>&lt;P&gt;Could you please give extract syntax to add device-type and device-mac to props.conf&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 13:30:57 GMT</pubDate>
    <dc:creator>Dmitriy</dc:creator>
    <dc:date>2021-08-11T13:30:57Z</dc:date>
    <item>
      <title>Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562906#M8459</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;We have index with cisco events and now we need to parse some fields such as device_mac and device_name. But we can't do it by regex because we get unstructured data from cisco (fields are swapped).&lt;/P&gt;&lt;P&gt;For example in this log first there is device type, and after mac&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dmitriy_1-1628683456038.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15523iFA82EB752C1A6CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dmitriy_1-1628683456038.png" alt="Dmitriy_1-1628683456038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the next one comes first mac, and after device type&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dmitriy_2-1628683478592.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15524iA97EFD402B4558CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dmitriy_2-1628683478592.png" alt="Dmitriy_2-1628683478592.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please help me? How i can parse this fields?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562906#M8459</guid>
      <dc:creator>Dmitriy</dc:creator>
      <dc:date>2021-08-11T12:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562912#M8460</link>
      <description>&lt;P&gt;Use two rex commands&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "device-type=(?&amp;lt;devicetype&amp;gt;[^,]+)"
| rex "device-mac=(?&amp;lt;devicemac&amp;gt;[^,]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562912#M8460</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-11T12:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562914#M8461</link>
      <description>&lt;P&gt;Could you please explane wrehe i need to use this command?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562914#M8461</guid>
      <dc:creator>Dmitriy</dc:creator>
      <dc:date>2021-08-11T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562916#M8463</link>
      <description>&lt;P&gt;In your SPL search query.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562916#M8463</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-11T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562922#M8464</link>
      <description>&lt;P&gt;Unless I'm missing something, the fields are labeled so parsing is trivial.&amp;nbsp; KV_MODE=auto should do it at index-time.&amp;nbsp; Or use a separate EXTRACT statement in props.conf for each field.&amp;nbsp; Or use a separate rex command for each field in SPL.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562922#M8464</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-11T13:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562923#M8465</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;But i have one more question&lt;/P&gt;&lt;P&gt;How i can save this fields to not in search rex commands?&amp;nbsp; I mean how to auto extract this to fields witout rex commad.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562923#M8465</guid>
      <dc:creator>Dmitriy</dc:creator>
      <dc:date>2021-08-11T13:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562927#M8466</link>
      <description>&lt;P&gt;Can I use this command in source type? Or maybe another command&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:17:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562927#M8466</guid>
      <dc:creator>Dmitriy</dc:creator>
      <dc:date>2021-08-11T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562930#M8467</link>
      <description>&lt;P&gt;Could you please give extract syntax to add device-type and device-mac to props.conf&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562930#M8467</guid>
      <dc:creator>Dmitriy</dc:creator>
      <dc:date>2021-08-11T13:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ice parse fields problem</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562958#M8468</link>
      <description>&lt;LI-CODE lang="markup"&gt;EXTRACT-mac = device-mac=(?&amp;lt;deviceMac&amp;gt;[^,]+)
EXTRACT-type = device-type=(?&amp;lt;deviceType&amp;gt;[^,]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Cisco-ice-parse-fields-problem/m-p/562958#M8468</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-11T15:59:46Z</dc:date>
    </item>
  </channel>
</rss>

