<?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: Indexing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing/m-p/673079#M112748</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| ldapsearch domain="default" search="(&amp;amp;(samAccountType=000000000) (|(sAMAccountName=*)))" attrs="sAMAccountName, distinguishedName, userAccountControl, whenCreated, personalTitle, displayName, givenName, sn, mail, telephoneNumber, mobile, manager, department, co, l, st, accountExpires, memberOf"
| rex field=memberOf "CN=(?&amp;lt;memberOf_parsed&amp;gt;[^,]+)"
| eval memberOf=lower(replace(mvjoin(memberOf_parsed, "|"), " ", "_"))
| rex max_match=5 field=distinguishedName "OU=(?&amp;lt;dn_parsed&amp;gt;[^,]+)"
| eval category=lower(replace(mvjoin(dn_parsed, "|"), " ", "_"))
| eval priority=case(match(category, "domain_admin|disabled|hold|executive") OR match(memberOf, "domain_admins|enterprise_admins|schema_admins|administrators"), "critical",
  match(category, "contractor|service_account|external"), "high", match(category, "employees|training|user_accounts|users|administration"), "medium", 1==1, "unknown")
| eval watchlist=case(match(category,"disabled|hold"), "true", 1==1, "false")
| eval startDate=strftime(strptime(whenCreated,"%Y%m%d%H%M"), "%m/%d/%Y %H:%M")
| eval endDate=strftime(strptime(accountExpires,"%Y-%m-%dT%H:%M:%S%Z"), "%m/%d/%Y %H:%M")
| eval work_city=mvjoin(mvappend(l, st), ", ")
| rename sAMAccountName as identity, personalTitle as prefix, displayName as nick, givenName as first, sn as last, mail as email, telephoneNumber as phone,mobile as phone2, manager AS managedBy, department as bunit, co AS work_country
| fillnull value="unknown" category, priority, bunit
| table identity,prefix,nick,first,last,suffix,email,phone,phone2,managedBy,priority,bunit,category,watchlist,startDate,endDate,work_city,work_country,work_lat,work_long | outputcsv xyz.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this the search that is being used to generate a csv file, and yes, it's same addon as you mentioned.&amp;nbsp;&lt;BR /&gt;I believe you're right that &amp;gt; they're writing to a directory (on the same host as HF) And ingesting it by using a input. conf file.&amp;nbsp;&lt;BR /&gt;Because in cloud we cannot monitor directories directly from cloud instance.&amp;nbsp;&lt;BR /&gt;Correct me? thanks&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 22:18:25 GMT</pubDate>
    <dc:creator>vishenps</dc:creator>
    <dc:date>2024-01-02T22:18:25Z</dc:date>
    <item>
      <title>Indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing/m-p/673057#M112742</link>
      <description>&lt;P&gt;Hi folks,&amp;nbsp;&lt;BR /&gt;Happy new year to you all:-)&lt;BR /&gt;&lt;BR /&gt;In my org the Splunk deployment is as follows:&lt;BR /&gt;&lt;BR /&gt;Heavy forwarders running (HF1, HF2) &amp;gt; Collecting data from directories, HTTP &amp;gt; Sent to Splunk cloud (2 search heads).&lt;BR /&gt;&lt;BR /&gt;Case: We have Active Directory add on HF1&amp;gt;which establishes connection to AD&amp;gt; write a CSV file in var/* of the host and &amp;gt; being indexed to the cloud.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;admin said we have input which write data to index=asset_identity : I AM NOT SURE WHAT THE ADMIN WAS REFFERING TO? IS IT CONF FILE ON HF?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 20:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing/m-p/673057#M112742</guid>
      <dc:creator>vishenps</dc:creator>
      <dc:date>2024-01-02T20:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing/m-p/673071#M112746</link>
      <description>&lt;P&gt;Can you clarify what technical addon you're using? Also, couldn't you ask your admin to clarify on the question you have originally?&lt;/P&gt;&lt;P&gt;If you're using this addon &lt;A href="https://splunkbase.splunk.com/app/1151" target="_self"&gt;here&lt;/A&gt;, then you can write a search using the LDAP command to write to an index with the collect command. Otherwise, whatever you're doing with the CSV file and then having a file monitoring to ingest the CSV is the long way to do it.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 21:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing/m-p/673071#M112746</guid>
      <dc:creator>m_pham</dc:creator>
      <dc:date>2024-01-02T21:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing/m-p/673079#M112748</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| ldapsearch domain="default" search="(&amp;amp;(samAccountType=000000000) (|(sAMAccountName=*)))" attrs="sAMAccountName, distinguishedName, userAccountControl, whenCreated, personalTitle, displayName, givenName, sn, mail, telephoneNumber, mobile, manager, department, co, l, st, accountExpires, memberOf"
| rex field=memberOf "CN=(?&amp;lt;memberOf_parsed&amp;gt;[^,]+)"
| eval memberOf=lower(replace(mvjoin(memberOf_parsed, "|"), " ", "_"))
| rex max_match=5 field=distinguishedName "OU=(?&amp;lt;dn_parsed&amp;gt;[^,]+)"
| eval category=lower(replace(mvjoin(dn_parsed, "|"), " ", "_"))
| eval priority=case(match(category, "domain_admin|disabled|hold|executive") OR match(memberOf, "domain_admins|enterprise_admins|schema_admins|administrators"), "critical",
  match(category, "contractor|service_account|external"), "high", match(category, "employees|training|user_accounts|users|administration"), "medium", 1==1, "unknown")
| eval watchlist=case(match(category,"disabled|hold"), "true", 1==1, "false")
| eval startDate=strftime(strptime(whenCreated,"%Y%m%d%H%M"), "%m/%d/%Y %H:%M")
| eval endDate=strftime(strptime(accountExpires,"%Y-%m-%dT%H:%M:%S%Z"), "%m/%d/%Y %H:%M")
| eval work_city=mvjoin(mvappend(l, st), ", ")
| rename sAMAccountName as identity, personalTitle as prefix, displayName as nick, givenName as first, sn as last, mail as email, telephoneNumber as phone,mobile as phone2, manager AS managedBy, department as bunit, co AS work_country
| fillnull value="unknown" category, priority, bunit
| table identity,prefix,nick,first,last,suffix,email,phone,phone2,managedBy,priority,bunit,category,watchlist,startDate,endDate,work_city,work_country,work_lat,work_long | outputcsv xyz.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this the search that is being used to generate a csv file, and yes, it's same addon as you mentioned.&amp;nbsp;&lt;BR /&gt;I believe you're right that &amp;gt; they're writing to a directory (on the same host as HF) And ingesting it by using a input. conf file.&amp;nbsp;&lt;BR /&gt;Because in cloud we cannot monitor directories directly from cloud instance.&amp;nbsp;&lt;BR /&gt;Correct me? thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 22:18:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing/m-p/673079#M112748</guid>
      <dc:creator>vishenps</dc:creator>
      <dc:date>2024-01-02T22:18:25Z</dc:date>
    </item>
  </channel>
</rss>

