<?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: Routing data to separate index using (?!...) in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513923#M62939</link>
    <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;Good morning.&amp;nbsp; As suggested, I have tried separating the sourcetype and the index TRANSFORMS.&amp;nbsp; As I am now seeing API data in the API index, I am good with ...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sourcetype_api_rename_iis&lt;/LI&gt;&lt;LI&gt;api_index_rename_iis&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But for the ...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sourcetype_web_rename_iis&lt;/LI&gt;&lt;LI&gt;web_index_rename_iis&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As all the IIS data is being stored in the IIS index, it appears the parsing is not happening.&amp;nbsp; The goal is to simply store IIS data (and not API data) in the IIS index.&amp;nbsp; Do you have any other suggestions?&lt;/P&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Regards,&lt;BR /&gt;Max&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Aug 2020 14:13:27 GMT</pubDate>
    <dc:creator>vpsmax</dc:creator>
    <dc:date>2020-08-13T14:13:27Z</dc:date>
    <item>
      <title>Routing data to separate index using (?!...)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513823#M62920</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Trying to resolve an issue with routing log events.&amp;nbsp; The goal is to route log events with an "Api" keyword to a separate index.&amp;nbsp; Here is a log sample of three events (the first has no "Api" embedded, the next two have "Api"):&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2020-08-12 23:04:24 W3SVC5 SERVER_1 XX.XX.XX.XXX GET / - 443 - XX.XX.XX.XX HTTP/0.9 - - - - 302 0 0 389 7 10&lt;BR /&gt;&lt;BR /&gt;2020-08-12 23:04:24 W3SVC5 SERVER_1 XX.XX.XX.XXX GET /Api/TopicsUpdate/GetRecalculationServiceTopicsThatMustBeUpdated pageSize=1 443 system.service XX.XX.XX.XX HTTP/1.1 - - - XX.XX.XX.XX 200 0 0 597 175 44&lt;BR /&gt;&lt;BR /&gt;2020-08-12 23:04:22 W3SVC5 SERVER_1 XX.XX.XX.XXX GET /Api/TopicsUpdate/GetRecalculationServiceTopicsThatMustBeUpdated pageSize=1 443 system.service XX.XX.XX.XX HTTP/1.1 - - - XX.XX.XX.XX 200 0 0 597 175 54&lt;/P&gt;&lt;P&gt;Here is the props.conf files:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[sourcetype1]&lt;BR /&gt;TRANSFORMS-set = sourcetype_web_rename_iis,sourcetype_api_rename_iis,web_index_rename_iis,api_index_rename_iis&lt;/P&gt;&lt;P&gt;Here is the transforms.conf:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[sourcetype_web_rename_iis]&lt;BR /&gt;REGEX = \d+\-\d+\-\d+\s\d+\:\d+\:\d+\s\w+\s\w+\s\d+.\d+\.\d+\.\d+\s\w+\s\/(?!Api)&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;FORMAT = sourcetype::ms:iis&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[sourcetype_api_rename_iis]&lt;BR /&gt;REGEX = \d+\-\d+\-\d+\s\d+\:\d+\:\d+\s\w+\s\w+\s\d+.\d+\.\d+\.\d+\s\w+\s\/Api\/&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;FORMAT = sourcetype::ms:iis&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[web_index_rename_iis]&lt;BR /&gt;REGEX = \d+\-\d+\-\d+\s\d+\:\d+\:\d+\s\w+\s\w+\s\d+.\d+\.\d+\.\d+\s\w+\s\/(?!Api)&lt;BR /&gt;DEST_KEY = _MetaData:Index&lt;BR /&gt;FORMAT = index1&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[api_index_rename_iis]&lt;BR /&gt;REGEX = \d+\-\d+\-\d+\s\d+\:\d+\:\d+\s\w+\s\w+\s\d+.\d+\.\d+\.\d+\s\w+\s\/Api\/&lt;BR /&gt;DEST_KEY = _MetaData:Index&lt;BR /&gt;FORMAT = index2&lt;/P&gt;&lt;P&gt;Are there any special considerations when using (?!...)?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Max&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 23:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513823#M62920</guid>
      <dc:creator>vpsmax</dc:creator>
      <dc:date>2020-08-12T23:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Routing data to separate index using (?!...)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513849#M62923</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224298"&gt;@vpsmax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what's the problem in your configuration?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;is the sourcetype override running or not?&lt;/LI&gt;&lt;LI&gt;is the index override running or not?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I don't like to have all the transformations in the same command, try to divide transformation in two commands in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype1]
TRANSFORMS-sourcetype_override = sourcetype_web_rename_iis, sourcetype_api_rename_iis
TRANSFORMS-index_override = web_index_rename_iis, api_index_rename_iis&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 08:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513849#M62923</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-08-13T08:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Routing data to separate index using (?!...)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513923#M62939</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;Good morning.&amp;nbsp; As suggested, I have tried separating the sourcetype and the index TRANSFORMS.&amp;nbsp; As I am now seeing API data in the API index, I am good with ...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sourcetype_api_rename_iis&lt;/LI&gt;&lt;LI&gt;api_index_rename_iis&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But for the ...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sourcetype_web_rename_iis&lt;/LI&gt;&lt;LI&gt;web_index_rename_iis&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As all the IIS data is being stored in the IIS index, it appears the parsing is not happening.&amp;nbsp; The goal is to simply store IIS data (and not API data) in the IIS index.&amp;nbsp; Do you have any other suggestions?&lt;/P&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Regards,&lt;BR /&gt;Max&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Aug 2020 14:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513923#M62939</guid>
      <dc:creator>vpsmax</dc:creator>
      <dc:date>2020-08-13T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Routing data to separate index using (?!...)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513953#M62946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224298"&gt;@vpsmax&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;regexes aren't correct, please try these:&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype1]
TRANSFORMS-sourcetype_override = sourcetype_web_rename_iis, sourcetype_api_rename_iis
TRANSFORMS-index_override = web_index_rename_iis, api_index_rename_iis&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype_web_rename_iis]
REGEX = .
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::ms:iis

[sourcetype_api_rename_iis]
REGEX = \/Api\/
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::ms:iis

[web_index_rename_iis]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = index1

[api_index_rename_iis]
REGEX = \/Api\/
DEST_KEY = _MetaData:Index
FORMAT = index2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or still easier:&lt;/P&gt;&lt;P&gt;in inputs.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index1
sourcetype=sourcetype::ms:iis&lt;/LI-CODE&gt;&lt;P&gt;in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype::ms::iis]
TRANSFORMS-index_override = api_index_rename_iis&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[api_index_rename_iis]
REGEX = \/Api\/
DEST_KEY = _MetaData:Index
FORMAT = index2&lt;/LI-CODE&gt;&lt;P&gt;In this way you have to override only index for api events.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 17:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Routing-data-to-separate-index-using/m-p/513953#M62946</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-08-13T17:25:41Z</dc:date>
    </item>
  </channel>
</rss>

