<?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 How to separate IIS logs while parsing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472357#M81181</link>
    <description>&lt;P&gt;Hi Splunk Ninjas,&lt;/P&gt;

&lt;P&gt;We have different web portals for different  purposes.  I categorize them as internal and external web portal. &lt;BR /&gt;
Now under the cs_host field I have different values but both type of values are pointing as one web portal&lt;BR /&gt;
for example. &lt;BR /&gt;
&lt;STRONG&gt;cs_host=&lt;A href="http://www.abc.com" target="_blank"&gt;www.abc.com&lt;/A&gt;        dvc/host= 1.2.3.4(External)&lt;BR /&gt;
cs_host=abc.com                  dvc/host= 1.2.3.4(Internal)&lt;BR /&gt;
cs_host=abc                          dvc/host= 1.2.3.4(Internal)&lt;BR /&gt;
cs_host=&lt;A href="http://www.xyz.com" target="_blank"&gt;www.xyz.com&lt;/A&gt;        dvc/host= 1.2.3.4(External)&lt;BR /&gt;
cs_host=xyz.com                  dvc/host= 1.2.3.4(Internal)&lt;BR /&gt;
cs_host=xyz                           dvc/host= 1.2.3.4(External)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The idea comes in my mind to separate them based on either internal OR external&lt;BR /&gt;
so if the cs_host=&lt;A href="http://www.abc.com" target="_blank"&gt;www.abc.com&lt;/A&gt;   OR cs_host=&lt;A href="http://www.xyz.com" target="_blank"&gt;www.xyz.com&lt;/A&gt; &lt;BR /&gt;
then there should be another field name web_portal=external&lt;BR /&gt;
and if cs_host=abc.com|abc OR cs_host=xyz|xyz.com&lt;BR /&gt;
the cs_host values should become abc|xyz.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:46:40 GMT</pubDate>
    <dc:creator>riqbal47010</dc:creator>
    <dc:date>2020-09-30T02:46:40Z</dc:date>
    <item>
      <title>How to separate IIS logs while parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472357#M81181</link>
      <description>&lt;P&gt;Hi Splunk Ninjas,&lt;/P&gt;

&lt;P&gt;We have different web portals for different  purposes.  I categorize them as internal and external web portal. &lt;BR /&gt;
Now under the cs_host field I have different values but both type of values are pointing as one web portal&lt;BR /&gt;
for example. &lt;BR /&gt;
&lt;STRONG&gt;cs_host=&lt;A href="http://www.abc.com" target="_blank"&gt;www.abc.com&lt;/A&gt;        dvc/host= 1.2.3.4(External)&lt;BR /&gt;
cs_host=abc.com                  dvc/host= 1.2.3.4(Internal)&lt;BR /&gt;
cs_host=abc                          dvc/host= 1.2.3.4(Internal)&lt;BR /&gt;
cs_host=&lt;A href="http://www.xyz.com" target="_blank"&gt;www.xyz.com&lt;/A&gt;        dvc/host= 1.2.3.4(External)&lt;BR /&gt;
cs_host=xyz.com                  dvc/host= 1.2.3.4(Internal)&lt;BR /&gt;
cs_host=xyz                           dvc/host= 1.2.3.4(External)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The idea comes in my mind to separate them based on either internal OR external&lt;BR /&gt;
so if the cs_host=&lt;A href="http://www.abc.com" target="_blank"&gt;www.abc.com&lt;/A&gt;   OR cs_host=&lt;A href="http://www.xyz.com" target="_blank"&gt;www.xyz.com&lt;/A&gt; &lt;BR /&gt;
then there should be another field name web_portal=external&lt;BR /&gt;
and if cs_host=abc.com|abc OR cs_host=xyz|xyz.com&lt;BR /&gt;
the cs_host values should become abc|xyz.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472357#M81181</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2020-09-30T02:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate IIS logs while parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472358#M81182</link>
      <description>&lt;P&gt;OR in simple can we achieve beow:&lt;/P&gt;

&lt;P&gt;if (cs_host = &lt;A href="http://www.abc.com" target="_blank"&gt;www.abc.com&lt;/A&gt; OR cs_host=&lt;A href="http://www.xyz.com" target="_blank"&gt;www.xyz.com&lt;/A&gt; OR cs_host="&lt;A href="http://www.*%22" target="_blank"&gt;www.*"&lt;/A&gt;), External, internal)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472358#M81182</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2020-09-30T02:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate IIS logs while parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472359#M81183</link>
      <description>&lt;P&gt;I suspect you need to use something from what Splunk call Knowledge Objects, there's a &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Knowledge/WhatisSplunkknowledge"&gt;document&lt;/A&gt; all about them . I'm sure there were some sessions from &lt;A href="https://splunkbase.splunk.com/app/3330/"&gt;past .conf's&lt;/A&gt; that covered this.  I think in a previous life (when Splunk was my main focus - I only dabble now) I found &lt;A href="http://conf.splunk.com/session/2013/US73002_Using_Splunk_LincolnBowser_UnleasingthePowerofSplunkwithKnowledgeObjects.m4v"&gt;this session&lt;/A&gt; useful. &lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472359#M81183</guid>
      <dc:creator>RHASQaL</dc:creator>
      <dc:date>2019-10-31T09:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate IIS logs while parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472360#M81184</link>
      <description>&lt;P&gt;Hi riqbal47010, &lt;/P&gt;

&lt;P&gt;beside  &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/Knowledge/definecalcfields" target="_blank"&gt;calculated fields&lt;/A&gt; this would be achived best with a csv-file and an &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.2/Knowledge/Aboutlookupsandfieldactions" target="_blank"&gt;lookup&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;You can define input fields (f.e. "cs_host") for different output fields (f.e. "web_portal") in your csv file and make that an (automatc) lookup. Wildcards and mutlple field combinations work aswell. For your needs something like should be a good start:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"cs_host","web_portal"
"xyz.com","external"
"xyz.dev","internal"
"*.dev","internal"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have the lookup working make it automatic so it gets applied autoamticly to every search on the source/sourcetype or hosts. &lt;/P&gt;

&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472360#M81184</guid>
      <dc:creator>hgrow</dc:creator>
      <dc:date>2020-09-30T02:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate IIS logs while parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472361#M81185</link>
      <description>&lt;P&gt;dear Hgrow,&lt;/P&gt;

&lt;P&gt;This idea mekes sense to you. can you please help me to achieve this. furthermore can I expand this to f5.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 12:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-IIS-logs-while-parsing/m-p/472361#M81185</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2019-11-04T12:23:15Z</dc:date>
    </item>
  </channel>
</rss>

