<?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 create a tag for multiple fields? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-tag-for-multiple-fields/m-p/145692#M29702</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;im trying to create tags based on two fields that i have in my logs.&lt;BR /&gt;
1- sourcetype&lt;BR /&gt;
2- path&lt;/P&gt;

&lt;P&gt;The idea is that we want to show events that when we search with tag it shows results when both criterias are matched &lt;/P&gt;

&lt;P&gt;So let say we have this log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mon Feb 16 15:20:21 2015 action=add, path="C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles\ReportServerService__02_16_2015_00_07_46.log", isdir=0, size=92834, gid=-1, uid=-1, modtime="Mon Feb 16 15:18:28 2015", mode="rwxrwxrwx", hash=
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We want the tag to be shown when the sourcetype is &lt;CODE&gt;File_Intergrity_Monitor&lt;/CODE&gt; in this case,  and the path is something inside &lt;CODE&gt;"C:\Program Files\Micorosoft SQL\*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Can this be done ?&lt;BR /&gt;
Im trying but at the moment if i create the tag it will match the sourcetype only and not the path field&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2015 14:55:05 GMT</pubDate>
    <dc:creator>arber</dc:creator>
    <dc:date>2015-02-17T14:55:05Z</dc:date>
    <item>
      <title>How to create a tag for multiple fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-tag-for-multiple-fields/m-p/145692#M29702</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;im trying to create tags based on two fields that i have in my logs.&lt;BR /&gt;
1- sourcetype&lt;BR /&gt;
2- path&lt;/P&gt;

&lt;P&gt;The idea is that we want to show events that when we search with tag it shows results when both criterias are matched &lt;/P&gt;

&lt;P&gt;So let say we have this log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mon Feb 16 15:20:21 2015 action=add, path="C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles\ReportServerService__02_16_2015_00_07_46.log", isdir=0, size=92834, gid=-1, uid=-1, modtime="Mon Feb 16 15:18:28 2015", mode="rwxrwxrwx", hash=
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We want the tag to be shown when the sourcetype is &lt;CODE&gt;File_Intergrity_Monitor&lt;/CODE&gt; in this case,  and the path is something inside &lt;CODE&gt;"C:\Program Files\Micorosoft SQL\*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Can this be done ?&lt;BR /&gt;
Im trying but at the moment if i create the tag it will match the sourcetype only and not the path field&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-tag-for-multiple-fields/m-p/145692#M29702</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2015-02-17T14:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a tag for multiple fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-tag-for-multiple-fields/m-p/145693#M29703</link>
      <description>&lt;P&gt;Create and eventtype for this, and associate the tag to that Eventtype. You can do this via the GUI, or via configfiles..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtypes.conf
[myevent]
search = index=myindex sourcetype=File_Intergrity_Monitor path="C:\Program Files\Microsoft SQL\*"


tags.conf
[eventtype=myevent]
mytagname = enabled
mytagname2 = enabled
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Feb 2015 19:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-tag-for-multiple-fields/m-p/145693#M29703</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-02-18T19:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a tag for multiple fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-tag-for-multiple-fields/m-p/145694#M29704</link>
      <description>&lt;P&gt;Thanks,&lt;BR /&gt;
we create the eventtype based on the search and did the match based on that eventtype&lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 13:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-tag-for-multiple-fields/m-p/145694#M29704</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2015-02-19T13:45:34Z</dc:date>
    </item>
  </channel>
</rss>

